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

Felix Yan felixonmars at gemini.archlinux.org
Sat Jan 15 12:31:47 UTC 2022


    Date: Saturday, January 15, 2022 @ 12:31:47
  Author: felixonmars
Revision: 1104120

archrelease: copy trunk to community-x86_64

Added:
  wgcf/repos/community-x86_64/
  wgcf/repos/community-x86_64/PKGBUILD
    (from rev 1104119, wgcf/trunk/PKGBUILD)

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

Copied: wgcf/repos/community-x86_64/PKGBUILD (from rev 1104119, wgcf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-01-15 12:31:47 UTC (rev 1104120)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: w0rty <mawo97 at gmail.com>
+
+pkgname=wgcf
+pkgver=2.2.11
+pkgrel=1
+pkgdesc='Generate WireGuard profile from Cloudflare Warp account'
+arch=('x86_64')
+url="https://github.com/ViRb3/wgcf"
+license=('MIT')
+makedepends=('go')
+depends=('glibc')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('c944c3430a6f2173087b1c60367d9297dcdcee1f0cc39494ae505a1a04d53c82')
+
+prepare(){
+  cd "$pkgname-$pkgver"
+  mkdir -p build/
+}
+
+build() {
+  export GOPATH="$srcdir"/gopath
+  cd "$pkgname-$pkgver"
+  # Buildflags according to https://wiki.archlinux.org/index.php/Go_package_guidelines#Flags_and_build_options
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  go build -o build -trimpath -buildmode=pie -ldflags "-linkmode=external -extldflags \"${LDFLAGS}\" -s -w" -modcacherw
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
+  install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list