aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-diff/APKBUILD
blob: e2291e142b6d24a72649ce7cf7684760cad5571f (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
# 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.44
pkgrel=0
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 && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="1f0bcd24b64b50a29ad1cf997c2247e9  Text-Diff-1.44.tar.gz"
sha256sums="57f7a0bed7d085d34a3ffab3a68140d7b816737c87b831086b4c0945bf483b10  Text-Diff-1.44.tar.gz"
sha512sums="6174135a07c880cb92577ad07107a4d4606f91a2602f65d9c0fd032d11de86d91367feb6e2da71f9b9293331460ab42439623c5c03e2ee4807846709c3e964aa  Text-Diff-1.44.tar.gz"