diff options
author | Sematre | 2021-02-22 13:33:20 +0100 |
---|---|---|
committer | Sematre | 2021-02-22 13:33:20 +0100 |
commit | 74fd744acb10ec5e30b2a172324810f378643f5c (patch) | |
tree | 34bf8d72e955cd6b1f53ae63c37362bb1bd46001 /PKGBUILD | |
download | aur-piknik.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bce90de1a143 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Sematre <sematre at gmx dot de> +pkgname=piknik +pkgver=0.10.1 +pkgrel=1 +pkgdesc="Copy/paste anything over the network." +arch=('any') +url="https://github.com/jedisct1/${pkgname}" +license=('ISC') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +md5sums=('964ae408ff8b0e254695205f9d978f61') + +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 +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm 755 "${pkgname}" -t "$pkgdir/usr/bin" + install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE" +} |