[arch-commits] Commit in zsa-wally-cli/repos (2 files)

David Runge dvzrv at gemini.archlinux.org
Sun Nov 7 00:28:01 UTC 2021


    Date: Sunday, November 7, 2021 @ 00:28:00
  Author: dvzrv
Revision: 1037979

archrelease: copy trunk to community-x86_64

Added:
  zsa-wally-cli/repos/community-x86_64/
  zsa-wally-cli/repos/community-x86_64/PKGBUILD
    (from rev 1037978, zsa-wally-cli/trunk/PKGBUILD)

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

Copied: zsa-wally-cli/repos/community-x86_64/PKGBUILD (from rev 1037978, zsa-wally-cli/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-11-07 00:28:00 UTC (rev 1037979)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=wally-cli
+pkgname=zsa-wally-cli
+pkgver=2.0.1
+pkgrel=3
+pkgdesc="Flash your ZSA Keyboard the EZ way"
+arch=('x86_64')
+url="https://github.com/zsa/wally-cli"
+license=(MIT)
+depends=(glibc zsa-udev)
+makedepends=(go libusb)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/zsa/${_name}/archive/$pkgver-linux.tar.gz")
+sha512sums=('998035e5d932892245cd6db13682501dc5e65a79b724e9ed66733c955bf6646c46c5cb59214160cd5bc5710949dcd43f054ae72b5adb757aa12e3cece92df4bc')
+b2sums=('876a1e237d08c43b90c89ef596ad9015a6f641d3282296b9e3c846a7bf7fa27988605902deaae9e2c95b9c8bf10a2e2304c3ad5b1812001a45b6ca93eb0210bd')
+
+prepare() {
+  mv -v "$_name-$pkgver-linux" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  mkdir -vp build
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+  go build -o build
+}
+
+package() {
+  depends+=('libusb-1.0.so')
+
+  cd "$pkgname-$pkgver"
+  install -vDm 755 "build/${_name}" -t "${pkgdir}/usr/bin/"
+  install -vDm 644 license.md -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}



More information about the arch-commits mailing list