ctucx.git: alpine-pkgs

My personal alpine-packages [deprecated in favor of nixos]

commit d2695f4102a8c8dfc6fafae1b492afa823f062c6
parent 6a894cba44a41750bd0fad7490ed14cdc2c9cc2d
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 20 Jan 2021 20:44:47 +0100

perl-config-genral: init
1 file changed, 38 insertions(+), 0 deletions(-)
A
perl-config-general/APKBUILD
|
38
++++++++++++++++++++++++++++++++++++++
diff --git a/perl-config-general/APKBUILD b/perl-config-general/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Leah (ctucx) <leah@ctu.cx>
+# Maintainer: Leah (ctucx) <leah@ctu.cx>
+pkgname=perl-config-general
+_pkgname=Config-General
+pkgver=2.63
+pkgrel=1
+pkgdesc="Generic Config Module."
+url="https://metacpan.org/release/Config-General"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-list-moreutils perl-io-stringy"
+makedepends="perl-dev perl-module-build"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/T/TL/TLINDEN/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+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}')
+	make
+}
+
+check() {
+	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+	make test
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+sha512sums="ba9fdbf992049936ea288a90d8f8360821fc96f8d42df0298888b25543d2ac43e2958c5f7a8bbbae7cad1e2151ea00528756a3bc0cfbe408e5ee82bf309615f3  Config-General-2.63.tar.gz"