aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-module-refresh/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-12-24 07:21:45 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-12-24 09:11:11 +0000
commit23bbfa0ec659b5b776fb24302fd2160f1543a76a (patch)
tree5bdb48da28512bef0ba34ade61e84f09d8e6b31d /main/perl-module-refresh/APKBUILD
parent4ce099ce5c4358c803bce32a91f0cc0831322ef4 (diff)
downloadaports-23bbfa0ec659b5b776fb24302fd2160f1543a76a.tar.bz2
aports-23bbfa0ec659b5b776fb24302fd2160f1543a76a.tar.xz
main/perl-module-refresh: new aport
Diffstat (limited to 'main/perl-module-refresh/APKBUILD')
-rw-r--r--main/perl-module-refresh/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-module-refresh/APKBUILD b/main/perl-module-refresh/APKBUILD
new file mode 100644
index 0000000000..943379e3e0
--- /dev/null
+++ b/main/perl-module-refresh/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-module-refresh
+_pkgreal=Module-Refresh
+pkgver=0.17
+pkgrel=0
+pkgdesc="Refresh %INC files when updated on disk"
+url="http://search.cpan.org/dist/Module-Refresh/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-path-class "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="b077d06cab125aaff940d859945727f4 Module-Refresh-0.17.tar.gz"
+sha256sums="6b30a6ceddc6512ab4490c16372ecf309a259f2ca147d622e478ac54e08511c3 Module-Refresh-0.17.tar.gz"
+sha512sums="48bbcf14d5c6f13217b41c9a4683fd5ff492d3d33f8d6d50e89eae8a6336f306358e0070ecf1617d68c6eb9f91caaec6e1048e09b741d3fa0a19f6d38a75f17f Module-Refresh-0.17.tar.gz"