[arch-commits] Commit in wallutils/repos/community-x86_64 (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Jun 3 19:49:42 UTC 2019


    Date: Monday, June 3, 2019 @ 19:49:42
  Author: arodseth
Revision: 476744

archrelease: copy trunk to community-x86_64

Added:
  wallutils/repos/community-x86_64/PKGBUILD
    (from rev 476743, wallutils/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: wallutils/repos/community-x86_64/PKGBUILD (from rev 476743, wallutils/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-03 19:49:42 UTC (rev 476744)
@@ -0,0 +1,32 @@
+# Maintainer: Alexander F. Rødseth <xyproto at 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:



More information about the arch-commits mailing list