summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKyle Manna2020-12-12 08:35:30 -0800
committerKyle Manna2020-12-12 08:35:30 -0800
commit2bf09b3f928935b74fe0099ee6dee0a33a387388 (patch)
treefd1c4efb9a7355b7c5aeb06994e5d21582937e23 /PKGBUILD
downloadaur-2bf09b3f928935b74fe0099ee6dee0a33a387388.tar.gz
release: v1.18.1
First release.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0ac7407a0c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Kyle Manna <kyle(at)kylemanna(dot)com>
+pkgname=storj-uplink
+_basename=storj
+pkgver=1.18.1
+pkgrel=1
+pkgdesc="Storj Tardigrade Uplink"
+arch=('x86_64')
+url="https://github.com/storj/storj"
+license=(' AGPL-3.0')
+source=("https://github.com/${_basename}/${_basename}/archive/v1.18.1.tar.gz")
+makedepends=('go')
+
+sha512sums=('789653290a5caaf9f07ed6e9c082d1829793553f98499534b6e83dc41bad4e08c44c50c2ec3c4151b34421b72fee5e9f808af3bd6903e542074342805e2289b8')
+
+prepare(){
+ cd "$_basename-$pkgver"
+ mkdir -p build/
+}
+
+build() {
+ cd "$_basename-$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 ./cmd/uplink
+}
+
+package() {
+ cd "$_basename-$pkgver"
+ install -Dm755 build/uplink "${pkgdir}/usr/bin/uplink"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}