aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-unicode-normalize/APKBUILD
blob: 6eee397d5913ed0a95a79d475ba6d4b94d23a224 (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
45
46
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-unicode-normalize
_pkgreal=Unicode-Normalize
pkgver=1.25
pkgrel=3
pkgdesc="Unicode Normalization Forms"
url="http://search.cpan.org/dist/Unicode-Normalize/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KH/KHW/$_pkgreal-$pkgver.tar.gz
	Unicode-Normalize-1.25-Fixes-for-removal-dot-from-INC.patch
	"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="f28c19e0293cf75cc0aab669ae0a0543f6a1a39e1e50ff32ab37abd8e85efc73e8b9075e581212b6da576ecbf8c0e9ddb7b9b352674aa3a04c77f9aaf4717866  Unicode-Normalize-1.25.tar.gz
bd1bd5e67d3a09ddd7bf2ec584af2258ab44e64850e480816c2b824fceabe9c926fe795d610c5468c84a8f375c3826fbf7c69b870cdd7719fc6f3a367660e553  Unicode-Normalize-1.25-Fixes-for-removal-dot-from-INC.patch"