Skip to content
Snippets Groups Projects
Commit 2acf0b2f authored by Alexander Rødseth's avatar Alexander Rødseth
Browse files

For archlinux-wallpaper, moved from AUR

parents
No related branches found
No related tags found
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
pkgname=wallutils
pkgver=5.8.0
pkgrel=1
pkgdesc='Utilities for handling resolutions, wallpapers and timed wallpapers'
arch=(x86_64)
url='https://github.com/xyproto/wallutils'
license=(MIT)
depends=(wayland libx11)
makedepends=(git go libxcursor libxmu upx xbitmaps xorgproto)
optdepends=('feh: for setting the wallpaper for some window managers for X')
source=("git+$url#tag=$pkgver")
options=(!strip)
sha256sums=('SKIP')
prepare() {
sed -i 's/go build/go build -mod=vendor -buildmode=pie -gcflags "all=-trimpath=$$PWD" -asmflags "all=-trimpath=$$PWD" -ldflags "-s -w -extldflags $$LDFLAGS"/g' $pkgname/Makefile
}
build() {
make -C $pkgname
}
package() {
DESTDIR="$pkgdir" make -C $pkgname install
find "$pkgdir/usr/bin/" -executable -type f -exec \
upx -q --no-progress {} >/dev/null \;
install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim: ts=2 sw=2 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment