parent
9504fc86ca
commit
19f65dc3ae
|
@ -10,6 +10,18 @@ TERMUX_PKG_AUTO_UPDATE=true
|
|||
TERMUX_PKG_DEPENDS="libusb, libplist, usbmuxd"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_post_get_source() {
|
||||
# Do not forget to bump revision of reverse dependencies and rebuild them
|
||||
# after SOVERSION is changed.
|
||||
local _SOVERSION=6
|
||||
|
||||
local e=$(sed -En 's/LIBUSBMUXD_SO_VERSION="?([0-9]+):([0-9]+):([0-9]+).*/\1-\3/p' \
|
||||
configure.ac)
|
||||
if [ ! "${e}" ] || [ "${_SOVERSION}" != "$(( "${e}" ))" ]; then
|
||||
termux_error_exit "SOVERSION guard check failed."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_configure() {
|
||||
./autogen.sh \
|
||||
--prefix=$TERMUX_PREFIX \
|
||||
|
@ -17,3 +29,15 @@ termux_step_configure() {
|
|||
--without-systemd \
|
||||
--host=$TERMUX_HOST_PLATFORM
|
||||
}
|
||||
|
||||
termux_step_post_massage() {
|
||||
# Do not forget to bump revision of reverse dependencies and rebuild them
|
||||
# after SOVERSION is changed.
|
||||
local _SOVERSION_GUARD_FILES="lib/libusbmuxd-2.0.so"
|
||||
local f
|
||||
for f in ${_SOVERSION_GUARD_FILES}; do
|
||||
if [ ! -e "${f}" ]; then
|
||||
termux_error_exit "SOVERSION guard check failed."
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue