36 lines
975 B
Bash
36 lines
975 B
Bash
# Template file for 'dqlite'
|
|
pkgname=dqlite
|
|
version=1.4.4
|
|
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=913c26d20e8638063b703733f83874de40b098afa9687e975350409225676371
|
|
|
|
_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"
|
|
}
|
|
}
|