sword: build shared lib

This commit is contained in:
Đoàn Trần Công Danh 2021-02-07 07:06:31 +07:00
parent 62ef7455c4
commit d7bee7d37c
3 changed files with 14 additions and 7 deletions

View File

@ -3916,3 +3916,4 @@ libwinbind-client-samba4.so samba-libs-4.13.2_1
libsixel.so.1 libsixel-1.8.6_1
libpamtest.so.0 pam_wrapper-1.1.3_1
libopenaptx.so.0 libopenaptx-0.2.0_1
libsword-1.8.1.so libsword-1.8.1_6

1
srcpkgs/libsword Symbolic link
View File

@ -0,0 +1 @@
sword

View File

@ -1,16 +1,14 @@
# Template file for 'sword'
pkgname=sword
version=1.8.1
revision=5
revision=6
build_style=gnu-configure
configure_args="--prefix=/usr --libdir=/usr/lib --without-conf
--disable-shared --with-icuregex"
configure_args="--without-conf --with-icuregex"
hostmakedepends="libtool automake pkg-config"
makedepends="icu-devel clucene-devel libcurl-devel zlib-devel"
conf_files="/etc/sword.conf"
short_desc="CrossWire Bible Society's free Bible software project"
maintainer="Dan Arnfield <dan@arnfield.com>"
license="GPL-2"
license="GPL-2.0-only"
homepage="https://crosswire.org/sword/index.jsp"
distfiles="https://crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-${version}.tar.gz"
checksum=ce9aa8f721a737f406115d35ff438bd07c829fce1605f0d6dcdabc4318bc5e93
@ -21,8 +19,14 @@ pre_configure() {
./autogen.sh
}
post_install() {
vconf ${FILESDIR}/sword.conf
libsword_package() {
conf_files="/etc/sword.conf"
short_desc+=" - libraries"
pkg_install() {
vconf ${FILESDIR}/sword.conf
vmove "usr/lib/libsword-*.so"
vmove usr/share
}
}
sword-devel_package() {
@ -32,5 +36,6 @@ sword-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/libsword.so"
}
}