diff --git a/packages/apt-file/apt-file.patch b/packages/apt-file/apt-file.patch new file mode 100644 index 000000000..6847dacdf --- /dev/null +++ b/packages/apt-file/apt-file.patch @@ -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' + ); diff --git a/packages/apt-file/build.sh b/packages/apt-file/build.sh new file mode 100644 index 000000000..6b9efab87 --- /dev/null +++ b/packages/apt-file/build.sh @@ -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" \ No newline at end of file diff --git a/packages/libapt-pkg-perl/build.sh b/packages/libapt-pkg-perl/build.sh new file mode 100644 index 000000000..f14964d8b --- /dev/null +++ b/packages/libapt-pkg-perl/build.sh @@ -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 +} diff --git a/packages/perl/build.sh b/packages/perl/build.sh index 0aea7bb15..b324bd9a5 100644 --- a/packages/perl/build.sh +++ b/packages/perl/build.sh @@ -5,6 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux" # Packages which should be rebuilt after version change: # - exiftool # - irssi +# - libapt-pkg-perl # - psutils TERMUX_PKG_VERSION=(5.34.0 1.3.6)