aports/community/perl-text-diff/APKBUILD
Roberto Oliveira b1274f164d community/perl-[t-y]: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
2017-11-05 01:39:35 +00:00

43 lines
1.1 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-text-diff
_pkgreal=Text-Diff
pkgver=1.45
pkgrel=1
pkgdesc="Perform diffs on files and record sets"
url="http://search.cpan.org/dist/Text-Diff/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-algorithm-diff"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="569370707bf30d60d12df6389594bcdba050805005916ac3a485c2226e528891b0af9ecfcc13d20e4f377d2c36a7ff67e51de5ca409c647aa8a36b7a87eab367 Text-Diff-1.45.tar.gz"