aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dqlite/APKBUILD
blob: 7ccc983fd3fafc9c487d0420ea043156398c7179 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dqlite
pkgver=1.6.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-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 \
		--enable-static=no
	make
}

check() {
	make check
}

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

sha512sums="07abf0d3247afd0a8f4ea053e10fbf2e53f69dc1101a7e54e064282eee3590ef5925e9b794a7cfd891247747d34b68340946d322d582ce49282b6f56804e8578  dqlite-1.6.0.tar.gz"