0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 20:56:19 +00:00
termux-packages/disabled-packages/ass2bdnxml/build.sh
Henrik Grimler 3ec82277d7
tree-wide: use git+[...] instead of [...].git for git urls
The termux_git_clone_src script has been updated and now expects git
urls to start with git+ instead.

%ci:no-build
2023-01-01 18:31:43 +01:00

31 lines
857 B
Bash

TERMUX_PKG_HOMEPAGE=https://ps-auxw.de/avs2bdnxml/
TERMUX_PKG_DESCRIPTION="AVS to BluRay SUP/PGS and BDN XML"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=42a5572c631bbb4dcf9b43d07179de8c5607d47c
TERMUX_PKG_VERSION=2019.02.06
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=git+https://github.com/hguandl/ass2bdnxml
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_DEPENDS="libpng"
termux_step_post_get_source() {
git fetch --unshallow
git checkout $_COMMIT
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
echo " is different from what is expected to be: \"$version\""
return 1
fi
}
termux_step_pre_configure() {
LDFLAGS+=" -lm"
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin ass2bdnxml
}