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
|
2019-07-22 21:43:56 +02:00
|
|
|
TERMUX_PKG_REVISION=15
|
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-07-22 00:51:28 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="apt-transport-https"
|
|
|
|
TERMUX_PKG_REPLACES="apt-transport-https"
|
|
|
|
TERMUX_PKG_RECOMMENDS="game-repo, science-repo"
|
|
|
|
TERMUX_PKG_SUGGESTS="unstable-repo"
|
|
|
|
TERMUX_PKG_ESSENTIAL=yes
|
|
|
|
|
|
|
|
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
|
|
|
|
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/apt-helper
|
|
|
|
lib/apt/methods/bzip2
|
|
|
|
lib/apt/methods/cdrom
|
|
|
|
lib/apt/methods/mirror
|
|
|
|
lib/apt/methods/rred
|
|
|
|
lib/apt/planners/
|
|
|
|
lib/apt/solvers/
|
|
|
|
lib/dpkg/
|
|
|
|
lib/libapt-inst.so
|
|
|
|
"
|
|
|
|
|
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.
|
|
|
|
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
|
|
|
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-03-24 18:02:27 +01:00
|
|
|
printf "# The main termux repository:\ndeb https://dl.bintray.com/termux/termux-packages-24 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/
|
|
|
|
rm $TERMUX_PREFIX/include/apt-pkg -r
|
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
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|