aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-file-readbackwards
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-26 07:13:27 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-26 07:15:41 +0000
commit833a4bf06c770af958ea0a5572e34b1d87785351 (patch)
tree9fe723170ca7590c2afc202ee221bd468c57e017 /community/perl-file-readbackwards
parente425d7fd726b377f9218c3e6f384f8b1ae34bdca (diff)
downloadaports-833a4bf06c770af958ea0a5572e34b1d87785351.tar.bz2
aports-833a4bf06c770af958ea0a5572e34b1d87785351.tar.xz
community/perl-file-readbackwards: moved from unmaintained
Diffstat (limited to 'community/perl-file-readbackwards')
-rw-r--r--community/perl-file-readbackwards/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-file-readbackwards/APKBUILD b/community/perl-file-readbackwards/APKBUILD
new file mode 100644
index 0000000000..088c5ada95
--- /dev/null
+++ b/community/perl-file-readbackwards/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Jean-Charles de Longueville <jch@hellea.eu>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-file-readbackwards
+_pkgreal=File-ReadBackwards
+pkgver=1.05
+pkgrel=2
+pkgdesc="reading a file backwards"
+url="http://search.cpan.org/dist/File-ReadBackwards/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/U/UR/URI/$_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 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="613d9d02de6c1d86d5fa5b8816a6b214 File-ReadBackwards-1.05.tar.gz"
+sha256sums="82b261af87507cc3e7e66899c457104ebc8d1c09fb85c53f67c1f90f70f18d6e File-ReadBackwards-1.05.tar.gz"
+sha512sums="8e1eeeda0acfdc0b9e1f5234cac37348890fb962e5edd395804d6cf9ab2c221217e2714025303493cafde7ce77721e6c09b2b53825dadb978fafe68f6d7b8c20 File-ReadBackwards-1.05.tar.gz"