diff options
Diffstat (limited to 'main/perl-cgi/APKBUILD')
-rw-r--r-- | main/perl-cgi/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/perl-cgi/APKBUILD b/main/perl-cgi/APKBUILD new file mode 100644 index 000000000..d795c5137 --- /dev/null +++ b/main/perl-cgi/APKBUILD @@ -0,0 +1,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" |