37 lines
975 B
Bash
37 lines
975 B
Bash
# Template file for 'dqlite'
|
|
pkgname=dqlite
|
|
version=1.5.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=1ea4a4a70460bce98eb8d473fd642322223bfd9897f348276c4b270194e3b95f
|
|
|
|
_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"
|
|
}
|
|
}
|