Date: Monday, June 3, 2019 @ 19:49:31 Author: arodseth Revision: 476743
For archlinux-wallpaper, moved from AUR Added: wallutils/ wallutils/repos/ wallutils/repos/community-x86_64/ wallutils/trunk/ wallutils/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: wallutils/trunk/PKGBUILD =================================================================== --- wallutils/trunk/PKGBUILD (rev 0) +++ wallutils/trunk/PKGBUILD 2019-06-03 19:49:31 UTC (rev 476743) @@ -0,0 +1,32 @@ +# Maintainer: Alexander F. Rødseth <[email protected]> + +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:
