packages/raft/PKGBUILD
2024-11-16 11:34:01 +01:00

35 lines
938 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Thomas Hipp <thomashipp at gmail dot com>
pkgname=raft
pkgver=0.22.1
pkgrel=1
pkgdesc="Asynchronous C implementation of the Raft consensus protocol"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://raft.readthedocs.io/"
license=('LGPL-3.0-only')
depends=('libuv' 'lz4')
options=(strip)
source=("$pkgname-$pkgver.tar.gz::https://github.com/cowsql/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('385f91a0b542ebe8b81c8f8500310dcd575fd028ea0cd2ede8807fa920dcf604')
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"
}