mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 08:18:54 +00:00
27 lines
965 B
Bash
27 lines
965 B
Bash
TERMUX_PKG_HOMEPAGE=https://xiph.org/ogg/
|
|
TERMUX_PKG_DESCRIPTION="Library for working with the Ogg multimedia container format"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=1.3.5
|
|
TERMUX_PKG_SRCURL=https://github.com/xiph/ogg/releases/download/v${TERMUX_PKG_VERSION}/libogg-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BREAKS="libogg-dev"
|
|
TERMUX_PKG_REPLACES="libogg-dev"
|
|
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=0
|
|
|
|
local a
|
|
for a in LIB_CURRENT LIB_AGE; do
|
|
local _${a}=$(sed -En 's/^'"${a}"'=([0-9]+).*/\1/p' \
|
|
configure.ac)
|
|
done
|
|
local v=$(( _LIB_CURRENT - _LIB_AGE ))
|
|
if [ ! "${_LIB_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|