aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dqlite/APKBUILD
blob: 7a77e2c8f7d4a88fc2b1d8f5bce3ec47aaa19fc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dqlite
pkgver=1.9.0
pkgrel=0
pkgdesc="Embeddable, replicated and fault tolerant SQL engine."
url="https://dqlite.io/"
arch="all"
license="Apache"
depends="raft"
makedepends="libuv-dev sqlite-dev sqlite-replication-dev
raft-dev autoconf automake libtool"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/canonical/dqlite/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -i
}

build() {
	./configure  \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/dqlite/LICENSE
}

sha512sums="
eeb759cdca6ef44d3c8d7d032b277dab57c24acfab29ead218aecf826c71631fad22244cadcea7337002049857a8b5cb3b5dcd39d611e41a463128e1e09472e3  dqlite-1.9.0.tar.gz
"