mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 02:26:34 +00:00
9e90d1b31a
Some packages have issues with parallel builds and need to set TERMUX_MAKE_PROCESSES=1. All other build variables that package recipes set are prefixed with TERMUX_PKG, use that for MAKE_PROCESSES as well for consistency. %ci:no-build
28 lines
991 B
Bash
28 lines
991 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/p7zip-project/p7zip
|
|
TERMUX_PKG_DESCRIPTION="Command-line version of the 7zip compressed file archiver"
|
|
TERMUX_PKG_LICENSE="LGPL-2.1"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="17.05"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/p7zip-project/p7zip/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=d2788f892571058c08d27095c22154579dfefb807ebe357d145ab2ddddefb1a6
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libc++, libiconv"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_configure() {
|
|
export CXXFLAGS="$CXXFLAGS $CPPFLAGS -Wno-c++11-narrowing"
|
|
export LDFLAGS="$LDFLAGS -liconv"
|
|
cp makefile.android_arm makefile.machine
|
|
}
|
|
|
|
termux_step_make() {
|
|
LD="$CC $LDFLAGS" CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" \
|
|
make -j $TERMUX_PKG_MAKE_PROCESSES 7z 7za OPTFLAGS="${CXXFLAGS}" DEST_HOME=$TERMUX_PREFIX
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
chmod +x install.sh
|
|
make install DEST_HOME=$TERMUX_PREFIX DEST_MAN=$TERMUX_PREFIX/share/man
|
|
}
|