From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/perl-archive-zip/perl-archive-zip.xibuild | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 repo/perl-archive-zip/perl-archive-zip.xibuild (limited to 'repo/perl-archive-zip') 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 +} + -- cgit v1.2.1