2018-09-11 00:46:45 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management
|
|
|
|
TERMUX_PKG_DESCRIPTION="Alpine Linux package management tools"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-07-21 15:39:04 +02:00
|
|
|
TERMUX_PKG_VERSION=2.10.4
|
2018-09-11 00:46:45 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/alpinelinux/apk-tools/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2019-07-21 15:39:04 +02:00
|
|
|
TERMUX_PKG_SHA256=c08aa725a0437a6a83c5364a1a3a468e4aef5d1d09523369074779021397281c
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_DEPENDS="openssl, zlib"
|
2018-09-11 00:46:45 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="LUAAPK="
|
2018-11-18 02:10:46 +01:00
|
|
|
TERMUX_PKG_CONFFILES="etc/apk/repositories"
|
2018-09-11 00:46:45 +02:00
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc/apk/
|
|
|
|
echo $TERMUX_ARCH > $TERMUX_PREFIX/etc/apk/arch
|
|
|
|
|
2018-11-18 02:10:46 +01:00
|
|
|
echo "https://termux.net/apk/main" > $TERMUX_PREFIX/etc/apk/repositories
|
2018-09-11 00:46:45 +02:00
|
|
|
}
|
|
|
|
|
2018-11-19 12:36:45 +01:00
|
|
|
termux_step_post_massage() {
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/etc/apk/keys"
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/etc/apk/protected_paths.d"
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/apk/db/"
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/cache/apk"
|
|
|
|
|
|
|
|
ln -sfr \
|
2019-02-12 09:23:21 +01:00
|
|
|
"$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/cache/apk" \
|
|
|
|
"$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/etc/apk/cache"
|
2018-11-19 12:36:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_create_debscripts() {
|
|
|
|
{
|
2019-02-12 09:23:21 +01:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh"
|
|
|
|
echo "touch $TERMUX_PREFIX/etc/apk/world"
|
2018-11-19 12:36:45 +01:00
|
|
|
} > ./postinst
|
|
|
|
chmod 755 postinst
|
|
|
|
}
|