aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-27 16:05:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-28 17:15:59 +0000
commit57568913de37dd6932ab6e75b8d5db8d9b5a1827 (patch)
tree46a1630f7c4956c94c2ca4313c28a573baf715a0
parentc9a6a2a18bbaccd13c47e77fac948b558aa8cf5d (diff)
downloadaports-57568913de37dd6932ab6e75b8d5db8d9b5a1827.tar.gz
aports-57568913de37dd6932ab6e75b8d5db8d9b5a1827.tar.bz2
aports-57568913de37dd6932ab6e75b8d5db8d9b5a1827.tar.xz
main/perl-file-tail: modernize and add project description
-rw-r--r--main/perl-file-tail/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/main/perl-file-tail/APKBUILD b/main/perl-file-tail/APKBUILD
index 7b6201de61..b082ebd1bc 100644
--- a/main/perl-file-tail/APKBUILD
+++ b/main/perl-file-tail/APKBUILD
@@ -3,38 +3,41 @@
pkgname=perl-file-tail
_pkgreal=File-Tail
pkgver=1.3
-pkgrel=0
-pkgdesc="unknown"
+pkgrel=1
+pkgdesc="Perl extension for reading from continously updated files"
url="http://search.cpan.org/dist/File-Tail/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="252635f89ec18cb871c0b45ed64b3f63 File-Tail-1.3.tar.gz"
-sha256sums="26d09f81836e43eae40028d5283fe5620fe6fe6278bf3eb8eb600c48ec34afc7 File-Tail-1.3.tar.gz"
sha512sums="942f87880d0d8b79c521248cdbc449daafbd117a2a3700e2dbcc7fe7a6046e5783e8616b6c32de513f85a56663b63c4dde217e9e124216ba6a605c645db2bde9 File-Tail-1.3.tar.gz"