new packages: apt-file, libapt-pkg-perl

This commit is contained in:
Lucy Phipps 2021-07-07 01:57:03 +01:00
parent 34d59c85fb
commit 991fa41252
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/apt-file b/apt-file
index 57c76b489..4fce27066 100644
--- a/apt-file
+++ b/apt-file
@@ -199,7 +199,7 @@ sub open_data_pipeline {
my @cat_cmd = (
'xargs',
'-0r',
- '/usr/lib/apt/apt-helper',
+ '@TERMUX_PREFIX@/lib/apt/apt-helper',
@apt_options,
'cat-file'
);

View File

@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://wiki.debian.org/apt-file
TERMUX_PKG_DESCRIPTION="search for files within packages"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.2.2
TERMUX_PKG_SRCURL=http://deb.debian.org/debian/pool/main/a/apt-file/apt-file_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=bacbfb038dca6d2f0b740dcd05064d0b81fd0f086ce2eb59c5157d13ef064edf
TERMUX_PKG_DEPENDS="libapt-pkg-perl, perl"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_EXTRA_MAKE_ARGS="DESTDIR=$TERMUX_PREFIX BINDIR=$TERMUX_PREFIX/bin \
MANDIR=$TERMUX_PREFIX/share/man/man1"

View File

@ -0,0 +1,29 @@
TERMUX_PKG_HOMEPAGE=https://packages.debian.org/libapt-pkg-perl
TERMUX_PKG_DESCRIPTION="Perl interface to APT's libapt-pkg"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.1.40
TERMUX_PKG_SRCURL=http://deb.debian.org/debian/pool/main/liba/libapt-pkg-perl/libapt-pkg-perl_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=524d2ef77f3d6896c50e7674022d85e4a391a6a2b3c65ba5e50ac671fa7ce4a1
TERMUX_PKG_DEPENDS="apt, perl"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
CFLAGS+=" -I$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android/CORE \
-I$TERMUX_PREFIX/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
LDFLAGS+=" -L$TERMUX_PREFIX/lib/perl5/$perl_version/${TERMUX_ARCH}-android/CORE \
-L$TERMUX_PREFIX/lib -lperl"
perl Makefile.PL INSTALLDIRS=perl DESTDIR="$TERMUX_PKG_MASSAGEDIR" \
INSTALLMAN3DIR="$TERMUX_PREFIX/share/man/man3" \
LIB=$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android
make CC="${CC}++" LD="${CC}++" OTHERLDFLAGS="$LDFLAGS" CCFLAGS="$CFLAGS"
}
termux_step_post_massage() {
local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
mv $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/x86_64-linux-gnu-thread-multi/* \
$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/
rm -rf $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/x86_64-linux-gnu-thread-multi
}

View File

@ -5,6 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux"
# Packages which should be rebuilt after version change: # Packages which should be rebuilt after version change:
# - exiftool # - exiftool
# - irssi # - irssi
# - libapt-pkg-perl
# - psutils # - psutils
TERMUX_PKG_VERSION=(5.34.0 TERMUX_PKG_VERSION=(5.34.0
1.3.6) 1.3.6)