diff options
author | Morteza NourelahiAlamdari | 2022-09-30 19:35:24 +0200 |
---|---|---|
committer | Morteza NourelahiAlamdari | 2022-09-30 19:35:24 +0200 |
commit | 46bbeb4293fd0fdae2048b5229c6b3b5b412cb26 (patch) | |
tree | e7a0e27f66962f9ca359a5ede4fe874a30e43a6c | |
download | aur-liftbridge.tar.gz |
Add package liftbridge
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..60714bbada17 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = liftbridge + pkgdesc = Lightweight, fault-tolerant message streams. + pkgver = 1.9.0 + pkgrel = 1 + url = https://liftbridge.io/ + arch = x86_64 + license = Apache-2.0 + makedepends = go + makedepends = make + source = https://github.com/liftbridge-io/liftbridge/archive/refs/tags/v1.9.0.tar.gz + sha256sums = 5f39a32eceba12d841420d4e7a4ca21297247d6fd405f3ec3141c9815afce5dc + +pkgname = liftbridge diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..795997bb2ac9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Morteza NourelahiAlamdari <m@0t1.me> + +pkgname=liftbridge +pkgver=1.9.0 +pkgrel=1 +pkgdesc="Lightweight, fault-tolerant message streams." +arch=('x86_64') +url="https://liftbridge.io/" +license=('Apache-2.0') +makedepends=('go' 'make') +source=("https://github.com/liftbridge-io/liftbridge/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('5f39a32eceba12d841420d4e7a4ca21297247d6fd405f3ec3141c9815afce5dc') + +build() { + cd "$pkgname-$pkgver" + make build +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 'liftbridge' "${pkgdir}/usr/local/bin/${pkgname}" + install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}" + while IFS= \read -r -d '' FILE + do + install -Dvm644 "$FILE" -t "${pkgdir}/usr/share/doc/${pkgname}" + done < <(\find documentation/ -type f -print0) +} + |