sqlite-replication: fix up libdir

This commit is contained in:
q66 2020-12-22 22:38:36 +01:00
parent f8d50a710f
commit c86ae228fb

View file

@ -1,7 +1,7 @@
# Template file for 'sqlite-replication'
pkgname=sqlite-replication
version=3.32.3
revision=1
revision=2
wrksrc="sqlite-version-${version}-replication4"
build_style=gnu-configure
configure_args="--enable-replication --enable-threadsafe --enable-fts5
@ -35,23 +35,14 @@ pre_configure() {
}
do_configure() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ] ; then
./configure ${configure_args} \
--libdir=/usr/lib32/sqlite-replication
else
./configure ${configure_args} \
--libdir=/usr/lib/sqlite-replication
fi
./configure ${configure_args} \
--libdir=/usr/lib${XBPS_TARGET_WORDSIZE}/sqlite-replication
}
post_install() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ] ; then
_libdir="usr/lib32"
else
_libdir="usr/lib"
fi
vmkdir "${_libdir}/pkgconfig"
mv "${DESTDIR}/${_libdir}"{/sqlite-replication,}/pkgconfig/sqlite3.pc
local libdir="usr/lib${XBPS_TARGET_WORDSIZE}"
vmkdir "${libdir}/pkgconfig"
mv "${DESTDIR}/${libdir}"{/sqlite-replication,}/pkgconfig/sqlite3.pc
# Alpine just deletes the binary, but someone may want it for debugging
mv "$DESTDIR"/usr/bin/sqlite3{,.sqlite-replication}
}