summaryrefslogtreecommitdiff
path: root/user/perl-class-singleton
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-class-singleton')
-rw-r--r--user/perl-class-singleton/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-class-singleton/APKBUILD b/user/perl-class-singleton/APKBUILD
new file mode 100644
index 000000000..f998c6cb6
--- /dev/null
+++ b/user/perl-class-singleton/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-class-singleton
+_pkgname=Class-Singleton
+pkgver=1.5
+pkgrel=0
+pkgdesc="Perl implementation of a Singleton class pattern"
+url="https://metacpan.org/release/Class-Singleton"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/S/SH/SHAY/Class-Singleton-$pkgver.tar.gz"
+builddir="$srcdir/Class-Singleton-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="f061a8b92d5f65e4fbcd14ef36ff1216f84443f487de34c98f7d08d6d18148f156c0cbd6249e75ac448c17547d1172dbda8b670a8e7573d3581c9c1196eb4804 Class-Singleton-1.5.tar.gz"