termux-packages/packages/p7zip/build.sh

24 lines
882 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=http://p7zip.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Command-line version of the 7zip compressed file archiver"
TERMUX_PKG_MAINTAINER="Francisco Demartino @franciscod"
# adapted from archlinux PKGBUILD
pkgname=p7zip
2016-09-26 16:04:26 +02:00
pkgver=16.02
TERMUX_PKG_VERSION=$pkgver
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}_src_all.tar.bz2"
2017-03-27 01:56:11 +02:00
TERMUX_PKG_SHA256=5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_configure () {
cp makefile.android_arm makefile.machine
}
termux_step_make () {
LD="$CC $LDFLAGS" CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" make -j $TERMUX_MAKE_PROCESSES all3 OPTFLAGS="${CXXFLAGS}" DEST_HOME=$TERMUX_PREFIX
}
termux_step_make_install () {
2015-12-21 18:59:34 +01:00
make install DEST_HOME=$TERMUX_PREFIX DEST_MAN=$TERMUX_PREFIX/share/man
}