aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-shell-config-generate/APKBUILD
blob: 1b15a6e593cfe81cd8c7a07ec58347d7e7c906a3 (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-config-generate
_pkgreal=Shell-Config-Generate
pkgver=0.24
pkgrel=0
pkgdesc="Portably generate config for any shell"
url="http://search.cpan.org/dist/Shell-Config-Generate/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-shell-guess"
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="4ec8afab38da4f266dcfd04ebe7d503a  Shell-Config-Generate-0.24.tar.gz"
sha256sums="b83b1b8e9b6bcef3626a3d54c1c937e1a0ce579ecd7c592383dc36b424225baf  Shell-Config-Generate-0.24.tar.gz"
sha512sums="0c1a95ec0f150a5776bcdb6d6ae6bcf59c29c7eec99c2f539f5dae7225507d785460890118ce82a7d2edbb17822e1fa19a9e5cf4a7e273d14cbce6284616ea7b  Shell-Config-Generate-0.24.tar.gz"