blob: cd2332dcd239ebe194758deba1a0ccba43af62b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-data-difflet
_pkgreal=Data-Difflet
pkgver=0.11
pkgrel=1
pkgdesc="Perl module for Data-Difflet"
url="http://search.cpan.org/dist/Data-Difflet/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-module-build"
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"
prepare() {
cd "$builddir"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor
else
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
fi
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build
}
check() {
cd "$builddir"
./Build test
}
package() {
cd "$builddir"
install -D -m0644 lib/Data/Difflet.pm "$pkgdir"/usr/share/perl5/vendor_perl/Data/Difflet.pm
}
sha512sums="ce3402f874773a8ee697a03d6857df61c369b7176bd519b7f3288450b7252dd918f4664317b2f9ad21358fc8711f46ea8e850ecd285de11300d397749862326a Data-Difflet-0.11.tar.gz"
|