aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-which/APKBUILD
blob: c63ca5caf8cf281eddcdf0d89d3b450a16518aa5 (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 <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-file-which
_pkgreal=File-Which
pkgver=1.18
pkgrel=0
pkgdesc="Perl implementation of the which utility as an API"
url="http://search.cpan.org/dist/File-Which/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/$_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="554bfb36568d828fbeee64f4b9a9faa8  File-Which-1.18.tar.gz"
sha256sums="964918a867bef2ce8b63786e24e947b249d4c0626d2d98b7c9a2155328f1391c  File-Which-1.18.tar.gz"
sha512sums="828942a034b9fbb6d2c6e00b47590084de0407d03a8cb9614e05d1a5a9692b0f7873052fcb136b80c2a9f0811e4c7a96a409efcb5745b10bf3fa8cf11048b4d2  File-Which-1.18.tar.gz"