summaryrefslogtreecommitdiff
path: root/repo/perl-exporter-tiny/perl-exporter-tiny.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
committerdavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
commit0d37a1ef234c38b27faba43bc3a22f985d311deb (patch)
treedde8df9f508e7323c3d7df599ceade7705c40acd /repo/perl-exporter-tiny/perl-exporter-tiny.xibuild
parentf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (diff)
Remove all firmware
Diffstat (limited to 'repo/perl-exporter-tiny/perl-exporter-tiny.xibuild')
-rw-r--r--repo/perl-exporter-tiny/perl-exporter-tiny.xibuild21
1 files changed, 21 insertions, 0 deletions
diff --git a/repo/perl-exporter-tiny/perl-exporter-tiny.xibuild b/repo/perl-exporter-tiny/perl-exporter-tiny.xibuild
new file mode 100644
index 0000000..eff8d87
--- /dev/null
+++ b/repo/perl-exporter-tiny/perl-exporter-tiny.xibuild
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+NAME="perl-exporter-tiny"
+DESC="an exporter with the features of Sub::Exporter but only core dependencies"
+
+MAKEDEPS=" perl"
+
+PKG_VER=1.006000
+SOURCE="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-$PKG_VER.tar.gz"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+