aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-glob/APKBUILD
blob: b9914158dce841245bf1cca419d134d291174941 (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-text-glob
_pkgreal=Text-Glob
pkgver=0.10
pkgrel=0
pkgdesc="match globbing patterns against text"
url="http://search.cpan.org/dist/Text-Glob/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

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="41983522000416c73bba115b36effe33  Text-Glob-0.10.tar.gz"
sha256sums="d0af0549a9dd1c70edcd3b1429ccc3702b79b873375b79cd2bdfe8870e337449  Text-Glob-0.10.tar.gz"
sha512sums="9a18048135f18500bb0ba3bf21c6df3fc390ec0f213c4a9331a84e643703805fbe557378284fa66f32a96852c38f832ac750509e257b5cc14b0f3ca6d75f5af0  Text-Glob-0.10.tar.gz"