aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi/APKBUILD
blob: d281d2d43eb0d7e7026f9e9dbe3441144cb8ff29 (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.15
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 perl-test-nowarnings "
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="e6a8b8f2495c397550d36f5d1d9255e5  CGI-4.15.tar.gz"
sha256sums="dd8198bf1e85256e7079effc08bdf8c615dc39facc06ea7427c8576a5be140b3  CGI-4.15.tar.gz"
sha512sums="5b733d983f47860e35db5e673bb65da593b4e89dc049fb167e3077fe933c80332b7c6bdd051fe38ab23a4c4a1c43d52085c03c02c48e08fa16e8507c32be4d38  CGI-4.15.tar.gz"