diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-06-01 07:12:27 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-06-01 07:12:27 +0000 |
commit | d283685e7a1788b2e99eb03c1f5845584c5ae23b (patch) | |
tree | ad9bf87b6c69aef47b5889b3d2fb3dfbccd4eba6 /main | |
parent | 1f5334c9cb48e626c7612a7bab8c0f69dc681c33 (diff) | |
download | aports-d283685e7a1788b2e99eb03c1f5845584c5ae23b.tar.bz2 aports-d283685e7a1788b2e99eb03c1f5845584c5ae23b.tar.xz |
main/perl-lwp-mediatypes: new aport
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-lwp-mediatypes/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/perl-lwp-mediatypes/APKBUILD b/main/perl-lwp-mediatypes/APKBUILD new file mode 100644 index 0000000000..d30358b612 --- /dev/null +++ b/main/perl-lwp-mediatypes/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-lwp-mediatypes +_realname=LWP-MediaTypes +pkgver=6.01 +pkgrel=0 +pkgdesc="Perl module - guess media type for a file or a URL" +url="http://search.cpan.org/~gaas" +arch="noarch" +license="GPL PerlArtistic" +depends="perl" +makedepends="perl-dev" +install= +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz" + +_builddir="$srcdir/$_realname-$pkgver" + +build() { + cd $_builddir + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make && make test || return 1 +} + +package() { + cd $_builddir + make DESTDIR="$pkgdir" install + # creates file collision among perl modules + find "$pkgdir" -name perllocal.pod -delete +} + +md5sums="3cd1ccb774867b5b20e672981b230db6 LWP-MediaTypes-6.01.tar.gz" |