aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-regexp-tr/APKBUILD
blob: d02aea24a2cbdf76b0837907fde91af527d7beef (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-regexp-tr
_pkgreal=Regexp-Tr
pkgver=0.05
pkgrel=0
pkgdesc="Run-time-compiled tr/// objects."
url="http://search.cpan.org/dist/Regexp-Tr/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CH/CHIA/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

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

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="1c01cb427ae8cfeba5d92fb392336510  Regexp-Tr-0.05.tar.gz"
sha256sums="d3e1563cb2eb04419715407766c402e702b351648edf2630fe7b6ee4ecfd81cd  Regexp-Tr-0.05.tar.gz"
sha512sums="2ef505f63790146fb57e76da5cea604c62d98b214b5db2eadd617059d29c3a8c7f923a4a5dc1f9152fbe36fea6f069821292b7fa2c38cc6f82fc536909eed5f9  Regexp-Tr-0.05.tar.gz"