aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-unicode-collate/APKBUILD
blob: 8b0b2f2964ec89c4c6d6658e6f9ada832e729d9c (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-unicode-collate
_pkgreal=Unicode-Collate
pkgver=1.22
pkgrel=0
pkgdesc="Unicode Collation Algorithm"
url="http://search.cpan.org/dist/Unicode-Collate/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SA/SADAHIRO/$_pkgreal-$pkgver.tar.gz"
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 && make test
}

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="942d63667488b3601008fe2050d07ac4e289c0c1132b929a87061fad9054f40e2efc9c2e10d6373fab6d1be01d9d78a08317eadf30ed65257ae47af9e855efaf  Unicode-Collate-1.22.tar.gz"