termux-packages/packages/apk-tools/build.sh

38 lines
1.3 KiB
Bash
Raw Normal View History

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"
2018-11-18 02:01:58 +01:00
TERMUX_PKG_VERSION=2.10.3
2019-04-14 14:51:46 +02:00
TERMUX_PKG_REVISION=1
2018-11-18 02:01:58 +01:00
TERMUX_PKG_SHA256=f91861ed981d0a2912d5d860a33795ec40d16021ab03f6561a3849b9c0bcf77e
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-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
}
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"
}
termux_step_create_debscripts() {
{
2019-02-12 09:23:21 +01:00
echo "#!$TERMUX_PREFIX/bin/sh"
echo "touch $TERMUX_PREFIX/etc/apk/world"
} > ./postinst
chmod 755 postinst
}