36 lines
975 B
Bash
36 lines
975 B
Bash
# Template file for 'dqlite'
|
|
pkgname=dqlite
|
|
version=1.4.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config automake libtool"
|
|
makedepends="sqlite-replication-devel raft-devel libco-devel"
|
|
depends="sqlite-replication"
|
|
short_desc="Distributed SQLite database using the Raft algorithm"
|
|
maintainer="Cameron Nemo <cnemo@tutanota.com>"
|
|
license="custom:LGPL-3.0-only-linking-exception"
|
|
homepage="https://github.com/canonical/dqlite"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=83ee490a1e7da71b0e5f68c67a24c6ff42278860a01d3a963c95506ce1e404b1
|
|
|
|
_libdir="/usr/lib/sqlite-replication"
|
|
LDFLAGS="-L${XBPS_CROSS_BASE}${_libdir} -Wl,-R${_libdir}"
|
|
|
|
pre_configure() {
|
|
autoreconf -i
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
dqlite-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|