From d7bee7d37c70ae3033bf2ec9944b21905264ccca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 7 Feb 2021 07:06:31 +0700 Subject: [PATCH] sword: build shared lib --- common/shlibs | 1 + srcpkgs/libsword | 1 + srcpkgs/sword/template | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/libsword diff --git a/common/shlibs b/common/shlibs index ce0e74cc74..eae36d09d1 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/libsword b/srcpkgs/libsword new file mode 120000 index 0000000000..fec9ffa97f --- /dev/null +++ b/srcpkgs/libsword @@ -0,0 +1 @@ +sword \ No newline at end of file diff --git a/srcpkgs/sword/template b/srcpkgs/sword/template index bb2999aa0e..13240a9931 100644 --- a/srcpkgs/sword/template +++ b/srcpkgs/sword/template @@ -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 " -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" } }