[arch-commits] Commit in raft/repos (2 files)
Morten Linderud
foxboron at gemini.archlinux.org
Sat Apr 9 20:48:13 UTC 2022
Date: Saturday, April 9, 2022 @ 20:48:13
Author: foxboron
Revision: 1183168
archrelease: copy trunk to community-staging-x86_64
Added:
raft/repos/community-staging-x86_64/
raft/repos/community-staging-x86_64/PKGBUILD
(from rev 1183167, raft/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: raft/repos/community-staging-x86_64/PKGBUILD (from rev 1183167, raft/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-04-09 20:48:13 UTC (rev 1183168)
@@ -0,0 +1,33 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Thomas Hipp <thomashipp at gmail dot com>
+
+pkgname=raft
+pkgver=0.13.0
+pkgrel=1
+pkgdesc="C implementation of the Raft consensus protocol"
+arch=('x86_64')
+url="https://github.com/canonical/raft"
+license=('LGPL3')
+depends=('libuv')
+options=(debug strip)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/canonical/${pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('91b2b0437f443a60498cdf8c53da8a5934a51eee983d2f6eb6f0c8e40af07a8c')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ autoreconf -i
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ make check || true
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -rf "${pkgdir}/usr/bin"
+}
More information about the arch-commits
mailing list