diff options
Diffstat (limited to 'main/perl-file-tail/APKBUILD')
-rw-r--r-- | main/perl-file-tail/APKBUILD | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/main/perl-file-tail/APKBUILD b/main/perl-file-tail/APKBUILD index b082ebd1bc8..935a9a71859 100644 --- a/main/perl-file-tail/APKBUILD +++ b/main/perl-file-tail/APKBUILD @@ -1,43 +1,36 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 3 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-file-tail +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=File-Tail pkgver=1.3 -pkgrel=1 -pkgdesc="Perl extension for reading from continously updated files" -url="http://search.cpan.org/dist/File-Tail/" +pkgrel=5 +pkgdesc="Perl module for File-Tail" +url="https://metacpan.org/release/File-Tail/" arch="noarch" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends="" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends="perl" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/$_pkgreal-$pkgver.tar.gz" - +source="https://cpan.metacpan.org/authors/id/M/MG/MGRABNAR/File-Tail-$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}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" - make test + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="942f87880d0d8b79c521248cdbc449daafbd117a2a3700e2dbcc7fe7a6046e5783e8616b6c32de513f85a56663b63c4dde217e9e124216ba6a605c645db2bde9 File-Tail-1.3.tar.gz" +sha512sums=" +942f87880d0d8b79c521248cdbc449daafbd117a2a3700e2dbcc7fe7a6046e5783e8616b6c32de513f85a56663b63c4dde217e9e124216ba6a605c645db2bde9 File-Tail-1.3.tar.gz +" |