Skip to content

Commit 03ebf07

Browse files
knyipablicy183
authored andcommitted
new package: librevenge
1 parent 4f1f4a5 commit 03ebf07

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

tur/librevenge/build.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
TERMUX_PKG_HOMEPAGE=https://sf.net/p/libwpd/librevenge/
2+
TERMUX_PKG_DESCRIPTION="library for REVerses ENGineered formats filters"
3+
TERMUX_PKG_LICENSE="LGPL-2.1, MPL-2.0"
4+
TERMUX_PKG_MAINTAINER="@termux-user-repository"
5+
TERMUX_PKG_VERSION=0.0.5
6+
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/libwpd/files/librevenge/librevenge-${TERMUX_PKG_VERSION}/librevenge-${TERMUX_PKG_VERSION}.tar.xz
7+
TERMUX_PKG_SHA256=106d0c44bb6408b1348b9e0465666fa83b816177665a22cd017e886c1aaeeb34
8+
TERMUX_PKG_DEPENDS="boost, zlib"
9+
TERMUX_PKG_BUILD_DEPENDS="boost-headers"
10+
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
11+
--disable-tests
12+
"
13+
14+
termux_step_pre_configure() {
15+
local _libgcc_file="$($CC -print-libgcc-file-name)"
16+
local _libgcc_path="$(dirname $_libgcc_file)"
17+
local _libgcc_name="$(basename $_libgcc_file)"
18+
LDFLAGS+=" -L$_libgcc_path -l:$_libgcc_name"
19+
}
20+
21+
termux_step_post_configure() {
22+
# Avoid overlinking
23+
sed -i 's/ -shared / -Wl,--as-needed\0/g' ./libtool
24+
}
25+
26+
termux_step_post_massage() {
27+
# Do not forget to bump revision of reverse dependencies and rebuild them
28+
# after SOVERSION is changed.
29+
local _SOVERSION_GUARD_FILES="
30+
lib/librevenge-0.0.so
31+
lib/librevenge-generators-0.0.so
32+
lib/librevenge-stream-0.0.so
33+
"
34+
local f
35+
for f in ${_SOVERSION_GUARD_FILES}; do
36+
if [ ! -e "${f}" ]; then
37+
termux_error_exit "SOVERSION guard check failed."
38+
fi
39+
done
40+
}

0 commit comments

Comments
 (0)