packages/dqlite/PKGBUILD
2025-01-03 09:49:08 +01:00

36 lines
1017 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=dqlite
pkgver=1.18.0
pkgrel=1
pkgdesc="Distributed SQLite"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/CanonicalLtd/dqlite"
license=('LGPL-3.0-only')
depends=('libuv' 'sqlite')
makedepends=('tcl' 'readline' 'zlib')
options=(strip)
source=("$pkgname-$pkgver.tar.gz::https://github.com/canonical/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('b0acae69ffef1b3762e8a1a4b02dc8cf52b3c786ae2a75fdce87e1e40a10a12d')
build() {
cd "$pkgname-$pkgver"
autoreconf -i
#PKG_CONFIG_PATH="/usr/lib/sqlite-replication/pkgconfig" ./configure --prefix=/usr
./configure --prefix=/usr --enable-build-raft
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"
}