mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/perl-data-difflet: modernize and add check
This commit is contained in:
parent
7dc6a38040
commit
12a77edce7
@ -3,7 +3,7 @@
|
||||
pkgname=perl-data-difflet
|
||||
_pkgreal=Data-Difflet
|
||||
pkgver=0.11
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Perl module for Data-Difflet"
|
||||
url="http://search.cpan.org/dist/Data-Difflet/"
|
||||
arch="noarch"
|
||||
@ -14,28 +14,31 @@ depends="$cpandepends"
|
||||
makedepends="perl-dev $cpanmakedepends"
|
||||
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
|
||||
|
||||
_builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
if [ -e Build.PL ]; then
|
||||
perl Build.PL installdirs=vendor || return 1
|
||||
perl Build.PL installdirs=vendor
|
||||
else
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
./Build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
./Build test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
install -D -m0644 lib/Data/Difflet.pm "$pkgdir"/usr/share/perl5/vendor_perl/Data/Difflet.pm
|
||||
}
|
||||
|
||||
md5sums="9620f357f3762b151d063fa289de005d Data-Difflet-0.11.tar.gz"
|
||||
sha256sums="d12b86386489829e45d72ec750b3e6922bc02816d6346102e071e61195a8a211 Data-Difflet-0.11.tar.gz"
|
||||
sha512sums="ce3402f874773a8ee697a03d6857df61c369b7176bd519b7f3288450b7252dd918f4664317b2f9ad21358fc8711f46ea8e850ecd285de11300d397749862326a Data-Difflet-0.11.tar.gz"
|
||||
|
Loading…
Reference in New Issue
Block a user