aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-probe-perl/APKBUILD
blob: 7c9c9ae6852b553b015cfbcc518b3d3e8ddfa47a (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-probe-perl
_pkgreal=Probe-Perl
pkgver=0.03
pkgrel=0
pkgdesc="Information about the currently running perl"
url="http://search.cpan.org/dist/Probe-Perl/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	perl Makefile.PL INSTALLDIRS=vendor || return 1
}

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

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

md5sums="8876e1b99c531800a86b383702e0ab73  Probe-Perl-0.03.tar.gz"
sha256sums="d9e4d21e2e77638559045fa09046b1b6fff6c403b949929db213e30abe8a3c31  Probe-Perl-0.03.tar.gz"
sha512sums="739bdb9d1a74eb77ab885a5aca861a1915cadbb1002bb4cb0d21fc6940ae6b3aa64ee52951ac8b2dca41c9e8fe188e17ae5f3c848c4a1caaf66fec5d25bef49c  Probe-Perl-0.03.tar.gz"