aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi/APKBUILD
blob: d795c51375941de84721024ef07331002bc74966 (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
# 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.pm
pkgver=4.03
pkgrel=0
pkgdesc="Perl module for CGI"
url="http://search.cpan.org/dist/CGI/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
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="265c8133a02e194d3189573835de51f4  CGI.pm-4.03.tar.gz"
sha256sums="b89e1e047f627bbad90221b9d689c423b2c4251ea65d0574849c89a355feec28  CGI.pm-4.03.tar.gz"
sha512sums="e064d5d40cf284347454774b2bcadd54d39fa1433be0d619d18067e614f8570e072f1995206e9233f1b5a4a3e61fb0748aefc0d535fd89355d4afb8bc0bd879c  CGI.pm-4.03.tar.gz"