aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi/APKBUILD
blob: f00c3382e937483665906ccb196b2944e32a3598 (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.28
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="28efb391377f6e98c19c23292d5fcc8c  CGI-4.28.tar.gz"
sha256sums="1297d3ed6616cacb4eb57860e3e743f3890111e7a63ca08849930f42f1360532  CGI-4.28.tar.gz"
sha512sums="fa03904d4ebe97d4d69dd3e40975f24ad539d8c82010d4250fd13c14af995451c7583e5531e12c6acd84fab14f081726a0dc769856b93e94f198da98f05f1108  CGI-4.28.tar.gz"