diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-17 08:32:20 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-17 08:32:20 +0000 |
commit | 2879bcf13096535a3cd9df0a60cbbed2874c0b47 (patch) | |
tree | df516644ba2628cdafd13cf10374d5456a017b0b /user/perl-class-singleton/APKBUILD | |
parent | b13e2e79be20e92c59a79a1badcb2a48a9059c1f (diff) | |
download | packages-2879bcf13096535a3cd9df0a60cbbed2874c0b47.tar.gz packages-2879bcf13096535a3cd9df0a60cbbed2874c0b47.tar.bz2 packages-2879bcf13096535a3cd9df0a60cbbed2874c0b47.tar.xz packages-2879bcf13096535a3cd9df0a60cbbed2874c0b47.zip |
user/perl-class-singleton: new package
Diffstat (limited to 'user/perl-class-singleton/APKBUILD')
-rw-r--r-- | user/perl-class-singleton/APKBUILD | 34 |
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" |