From 57568913de37dd6932ab6e75b8d5db8d9b5a1827 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Mon, 27 Nov 2017 16:05:14 +0000 Subject: main/perl-file-tail: modernize and add project description --- main/perl-file-tail/APKBUILD | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/main/perl-file-tail/APKBUILD b/main/perl-file-tail/APKBUILD index 7b6201de618..b082ebd1bc8 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" -- cgit v1.2.3