2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://packages.debian.org/apt
|
|
|
|
TERMUX_PKG_DESCRIPTION="Front-end for the dpkg package manager"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-01-30 00:40:57 +01:00
|
|
|
TERMUX_PKG_VERSION=1.4.9
|
2020-03-20 08:54:28 +01:00
|
|
|
TERMUX_PKG_REVISION=27
|
2017-09-17 20:51:20 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://ftp.debian.org/debian/pool/main/a/apt/apt_${TERMUX_PKG_VERSION}.tar.xz
|
2019-07-22 00:51:28 +02:00
|
|
|
TERMUX_PKG_SHA256=d4d65e7c84da86f3e6dcc933bba46a08db429c9d933b667c864f5c0e880bac0d
|
|
|
|
# apt-key requires utilities from coreutils, findutils, gpgv, grep, sed.
|
2019-07-22 01:05:02 +02:00
|
|
|
TERMUX_PKG_DEPENDS="coreutils, dpkg, findutils, gpgv, grep, libc++, libcurl, liblzma, sed, termux-licenses, zlib"
|
2019-11-20 22:42:23 +01:00
|
|
|
TERMUX_PKG_CONFLICTS="apt-transport-https, libapt-pkg"
|
|
|
|
TERMUX_PKG_REPLACES="apt-transport-https, libapt-pkg"
|
2019-11-13 16:08:28 +01:00
|
|
|
TERMUX_PKG_RECOMMENDS="game-repo, science-repo"
|
|
|
|
TERMUX_PKG_SUGGESTS="gnupg, unstable-repo, x11-repo"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_ESSENTIAL=true
|
2019-07-22 00:51:28 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_CONFFILES="
|
|
|
|
etc/apt/sources.list
|
|
|
|
etc/apt/trusted.gpg
|
|
|
|
"
|
|
|
|
|
2017-09-17 20:51:20 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2019-02-12 09:41:30 +01:00
|
|
|
-DPERL_EXECUTABLE=$(which perl)
|
2017-09-17 20:51:20 +02:00
|
|
|
-DCMAKE_INSTALL_FULL_LOCALSTATEDIR=$TERMUX_PREFIX
|
|
|
|
-DCOMMON_ARCH=$TERMUX_ARCH
|
|
|
|
-DDPKG_DATADIR=$TERMUX_PREFIX/share/dpkg
|
|
|
|
-DUSE_NLS=OFF
|
|
|
|
-DWITH_DOC=OFF
|
|
|
|
"
|
2019-07-22 00:51:28 +02:00
|
|
|
|
2018-12-17 08:21:40 +01:00
|
|
|
# ubuntu uses instead $PREFIX/lib instead of $PREFIX/libexec to
|
|
|
|
# "Work around bug in GNUInstallDirs" (from apt 1.4.8 CMakeLists.txt).
|
|
|
|
# Archlinux uses $PREFIX/libexec though, so let's force libexec->lib to
|
|
|
|
# get same build result on ubuntu and archlinux.
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="-DCMAKE_INSTALL_LIBEXECDIR=lib"
|
|
|
|
|
2017-09-17 20:51:20 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
bin/apt-cdrom
|
|
|
|
bin/apt-extracttemplates
|
|
|
|
bin/apt-sortpkgs
|
|
|
|
etc/apt/apt.conf.d
|
|
|
|
lib/apt/methods/bzip2
|
|
|
|
lib/apt/methods/cdrom
|
|
|
|
lib/apt/methods/mirror
|
|
|
|
lib/apt/methods/rred
|
|
|
|
lib/apt/planners/
|
|
|
|
lib/apt/solvers/
|
|
|
|
lib/dpkg/
|
|
|
|
"
|
|
|
|
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-09-17 20:51:20 +02:00
|
|
|
termux_step_post_make_install() {
|
2019-10-20 20:41:26 +02:00
|
|
|
printf "# The main termux repository:\ndeb https://termux.org/packages/ stable main\n" > $TERMUX_PREFIX/etc/apt/sources.list
|
2017-11-16 23:37:17 +01:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/trusted.gpg $TERMUX_PREFIX/etc/apt/
|
2018-08-03 12:42:07 +02:00
|
|
|
|
|
|
|
# apt-transport-tor
|
|
|
|
ln -sfr $TERMUX_PREFIX/lib/apt/methods/http $TERMUX_PREFIX/lib/apt/methods/tor
|
|
|
|
ln -sfr $TERMUX_PREFIX/lib/apt/methods/http $TERMUX_PREFIX/lib/apt/methods/tor+http
|
|
|
|
ln -sfr $TERMUX_PREFIX/lib/apt/methods/https $TERMUX_PREFIX/lib/apt/methods/tor+https
|
2019-09-23 19:19:48 +02:00
|
|
|
|
|
|
|
# man pages
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/man/
|
|
|
|
cp -Rf $TERMUX_PKG_BUILDER_DIR/man/* $TERMUX_PREFIX/share/man/
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|