termux-packages/packages/arj/build.sh
Leonid Pliushch 47df9e73c1 move some packages from unstable repo
* algernon
* apg
* aptly
* arj
* codecrypt
* crunch
* cryptopp
* diskus
* google-glog
* hexyl
* jp2a
* libgfshare
* libmcrypt
* libmhash
* libmicrohttpd
* libnftnl
* libsigsegv
* lua-lpeg
* morse2ascii
* seccure
* secure-delete
* ssss
* steghide
* taglib
* unicorn
* vegeta
* vis
* wren
* wuzz
* zsync
2019-09-08 16:44:36 +03:00

42 lines
1.2 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_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
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
}