termux-packages/packages/arj/build.sh
Leonid Pliushch 9c9e7f65b8 update maintainer info
Specifying Termux org members is more correct as we don't have repo-specific
maintainers for termux-packages.

DEB control field specification doesn't allow to specify multiple people as
package maintainers. Value "Termux members @termux" will be used as default
for that field which can be overridden on per-package basis if needed.

%ci:no-build
2020-05-13 11:05:52 +03:00

41 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=http://arj.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Open-source version of arj archiver"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=3.10.22
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/arj/arj-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=589e4c9bccc8669e7b6d8d6fcd64e01f6a2c21fe10aad56a83304ecc3b96a7db
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
(cd ./gnu && autoconf -f -i)
# Hack for executing configure script in
# non-standard directory.
{
echo "#!/bin/sh"
echo "cd ./gnu"
echo "\$(dirname \$0)/gnu/configure \"\$@\""
} > ./configure
chmod +x ./configure
}
# ARJ appends archive of its help to its end. Unfortunately stripping and
# ELF cleaning remove it. So redo this addition and correct the
# ARJ self-checksum.
termux_step_post_massage() {
local build_subdir
if [ "$TERMUX_ARCH" = "arm" ]; then
build_subdir="linux-androideabi"
else
build_subdir="linux-android"
fi
"$TERMUX_PKG_SRCDIR/$build_subdir"/en/rs/tools/join \
bin/arj \
"$TERMUX_PKG_SRCDIR/$build_subdir"/en/rs/help.arj
"$TERMUX_PKG_SRCDIR/$build_subdir"/en/rs/tools/postproc \
bin/arj
}