aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-shell-guess/APKBUILD
blob: 170bf1f28f0dac509fbe3d46307faed25d411120 (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: 
# Maintainer: 
pkgname=perl-shell-guess
_pkgreal=Shell-Guess
pkgver=0.06
pkgrel=1
pkgdesc="Make an educated guess about the shell in use"
url="http://search.cpan.org/dist/Shell-Guess/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-module-build"
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 Build.PL installdirs=vendor || return 1
}

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

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

md5sums="767d7628cd7d73f129029a649ef45a67  Shell-Guess-0.06.tar.gz"
sha256sums="4758c98affcade0d8f3882f8c2a9ee671bf1eef72f1025796cff939f7e93be23  Shell-Guess-0.06.tar.gz"
sha512sums="026a114059d9e4edb96f3bf73612564b38f8651e5007341b19c704aa1b109c53b1c88ada0ae1feb8dfa9759c979608f3658d3cfb52f6dbf1b927707e11876f98  Shell-Guess-0.06.tar.gz"