Date: Friday, April 7, 2023 @ 08:08:25
  Author: alerque
Revision: 1440888

archrelease: copy trunk to community-x86_64

Added:
  cliphist/repos/community-x86_64/
  cliphist/repos/community-x86_64/PKGBUILD
    (from rev 1440887, cliphist/trunk/PKGBUILD)

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

Copied: cliphist/repos/community-x86_64/PKGBUILD (from rev 1440887, 
cliphist/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2023-04-07 08:08:25 UTC (rev 1440888)
@@ -0,0 +1,34 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Luis Aleman Vazquez <[email protected]>
+
+pkgname=cliphist
+pkgver=0.4.0
+pkgrel=2
+epoch=1
+pkgdesc='wayland clipboard manager'
+arch=(i686 x86_64)
+url="https://github.com/sentriz/$pkgname";
+license=(GPL3)
+depends=(glibc
+         wl-clipboard)
+makedepends=(go)
+optdepends=('xdg-utils: image and mime inferance')
+_archive="$pkgname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('e492d6cd4e1bfc77582e32e25a3683687f2ff22e8d390cd06e14d21d7bef32c2')
+
+build() {
+       cd "$_archive"
+       export CGO_CPPFLAGS="$CPPFLAGS"
+       export CGO_CFLAGS="$CFLAGS"
+       export CGO_CXXFLAGS="$CXXFLAGS"
+       export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+       go build \
+               -ldflags "-linkmode external -extldflags '$LDFLAGS'" \
+               -o $pkgname
+}
+
+package() {
+       cd "$_archive"
+       install -Dm0755 -t "$pkgdir/usr/bin/" $pkgname
+}

Reply via email to