summaryrefslogtreecommitdiff
path: root/repo/perl-archive-zip/perl-archive-zip.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/perl-archive-zip/perl-archive-zip.xibuild
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/perl-archive-zip/perl-archive-zip.xibuild')
-rw-r--r--repo/perl-archive-zip/perl-archive-zip.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/perl-archive-zip/perl-archive-zip.xibuild b/repo/perl-archive-zip/perl-archive-zip.xibuild
new file mode 100644
index 0000000..b6a2738
--- /dev/null
+++ b/repo/perl-archive-zip/perl-archive-zip.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="perl-archive-zip"
+DESC="Provide a perl interface to ZIP archive files."
+
+MAKEDEPS="perl"
+
+PKG_VER=1.68
+SOURCE="https://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-$PKG_VER.tar.gz"
+
+prepare() {
+ default_prepare
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ make test
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+