termux-packages/packages/par2/build.sh

22 lines
746 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://github.com/Parchive/par2cmdline
TERMUX_PKG_DESCRIPTION="par2cmdline is a PAR 2.0 compatible file verification and repair tool."
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
2020-02-15 23:30:08 +01:00
TERMUX_PKG_VERSION=0.8.1
2022-03-19 08:11:28 +01:00
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/Parchive/par2cmdline/archive/v${TERMUX_PKG_VERSION}.tar.gz
2020-02-15 23:30:08 +01:00
TERMUX_PKG_SHA256=529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
TERMUX_PKG_AUTO_UPDATE=true
2022-03-19 08:11:28 +01:00
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
2017-07-14 23:18:28 +02:00
if [ $TERMUX_ARCH = "i686" ]; then
2020-02-17 11:55:45 +01:00
# Avoid undefined reference to __atomic_* functions:
2020-02-17 12:38:30 +01:00
export LIBS=" -latomic"
2017-07-14 23:18:28 +02:00
fi
aclocal
automake --add-missing
autoconf
}