aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi/APKBUILD
blob: 3c52be75166434386b34222972e2b8de41736f22 (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: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-cgi
_pkgreal=CGI
pkgver=4.32
pkgrel=0
pkgdesc="Handle Common Gateway Interface requests and responses"
url="http://search.cpan.org/dist/CGI/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-html-parser"
cpanmakedepends="  perl-test-warn perl-test-deep "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/$_pkgreal-$pkgver.tar.gz"

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

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

build() {
	cd "$_builddir"
	make && make test
}

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


md5sums="db2d0e870438b93e7d0c0560f7b302ac  CGI-4.32.tar.gz"
sha256sums="5f1f3cd12237cb32f879930ded1ff4552b9f348f1a5aa994633c9edbfc595d27  CGI-4.32.tar.gz"
sha512sums="901135e3091b0bd3e93e7a4f50f3e1336be9002df682fd5d582cb202f2536ce2a4f67850dd2ff655c999ab4f961da705324dbb64434132c7ec5c3763711ad739  CGI-4.32.tar.gz"