diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 15:55:33 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | 2a43acd83ace5bb9eefc0681a9423b2a7892e7e1 (patch) | |
tree | aa5cb884e90ce947a60a6bbad223639c5f233bf1 /testing/perl-aliased/APKBUILD | |
parent | 43cf8e657cfdbbe2953459672286383ba669a85d (diff) | |
download | aports-2a43acd83ace5bb9eefc0681a9423b2a7892e7e1.tar.bz2 aports-2a43acd83ace5bb9eefc0681a9423b2a7892e7e1.tar.xz |
testing/perl-aliased: new aport
Use shorter versions of class names.
http://search.cpan.org/dist/aliased/
Diffstat (limited to 'testing/perl-aliased/APKBUILD')
-rw-r--r-- | testing/perl-aliased/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-aliased/APKBUILD b/testing/perl-aliased/APKBUILD new file mode 100644 index 0000000000..288edd28f5 --- /dev/null +++ b/testing/perl-aliased/APKBUILD @@ -0,0 +1,47 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-aliased +_pkgreal=aliased +pkgver=0.34 +pkgrel=0 +pkgdesc="Use shorter versions of class names." +url="http://search.cpan.org/dist/aliased/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build +} + +package() { + cd "$builddir" + ./Build install --destdir="$pkgdir" --prefix=/usr/ --installdirs=vendor || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + ./Build test +} + +sha512sums="65bc3f6401a0c2119105261112a3d9612abb98c874cd3409c6a1a9a0974aae902f30b6041121be6a74ee28584cf0c7ef506fe8318ab35ac550f70b4b387744f6 aliased-0.34.tar.gz" |