From b9a3b00d109322c654c4ae21b260a410e09739c7 Mon Sep 17 00:00:00 2001 From: Lucy Phipps Date: Wed, 7 Jul 2021 20:18:19 +0100 Subject: [PATCH] new package: libregexp-assemble-perl --- packages/libregexp-assemble-perl/build.sh | 26 +++++++++++++++++++++++ packages/perl/build.sh | 1 + 2 files changed, 27 insertions(+) create mode 100644 packages/libregexp-assemble-perl/build.sh diff --git a/packages/libregexp-assemble-perl/build.sh b/packages/libregexp-assemble-perl/build.sh new file mode 100644 index 000000000..74c71791c --- /dev/null +++ b/packages/libregexp-assemble-perl/build.sh @@ -0,0 +1,26 @@ +TERMUX_PKG_HOMEPAGE=https://metacpan.org/pod/Regexp::Assemble +TERMUX_PKG_DESCRIPTION="Perl module to merge several regular expressions" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=0.38 +TERMUX_PKG_SRCURL=https://salsa.debian.org/perl-team/modules/packages/libregexp-assemble-perl/-/archive/upstream/${TERMUX_PKG_VERSION}/libregexp-assemble-perl-upstream-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=ca31b4111b825a4aa5262b07412822457910577881c2edb19407baad3997ebb0 +TERMUX_PKG_DEPENDS="perl" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_PLATFORM_INDEPENDENT=true + + +termux_step_configure() { + perl Makefile.PL +} + +termux_step_make_install() { + local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION) + mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/man/man3/ + cp $TERMUX_PKG_SRCDIR/blib/man3/Regexp::Assemble.3pm \ + $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/man/man3/ + + mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/Regexp/ + cp $TERMUX_PKG_SRCDIR/lib/Regexp/Assemble.pm \ + $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/Regexp/ +} diff --git a/packages/perl/build.sh b/packages/perl/build.sh index b324bd9a5..f13b15a6a 100644 --- a/packages/perl/build.sh +++ b/packages/perl/build.sh @@ -6,6 +6,7 @@ TERMUX_PKG_MAINTAINER="@termux" # - exiftool # - irssi # - libapt-pkg-perl +# - libregexp-assemble-perl # - psutils TERMUX_PKG_VERSION=(5.34.0 1.3.6)