diff options
-rw-r--r-- | main/perl-http-message/APKBUILD | 41 | ||||
-rw-r--r-- | testing/perl-http-message/APKBUILD | 39 |
2 files changed, 24 insertions, 56 deletions
diff --git a/main/perl-http-message/APKBUILD b/main/perl-http-message/APKBUILD index 8e36c27ea..61414ddef 100644 --- a/main/perl-http-message/APKBUILD +++ b/main/perl-http-message/APKBUILD @@ -1,32 +1,39 @@ -# Contributor: Leonardo Arena <rnalrd@gmail.com> -# Maintainer: Leonardo Arena <rnalrd@gmail.com> +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-http-message -_realname=HTTP-Message pkgver=6.02 -pkgrel=0 -pkgdesc="Perl World Wide Web library" -url="http://search.cpan.org/~gaas" +pkgrel=1 +pkgdesc="HTTP::Message perl module" +url="http://search.cpan.org/dist/HTTP-Message/" arch="noarch" -license="GPL PerlArtistic" -depends="perl" +license="GPLv2 or Artistic" +depends="perl perl-uri perl-html-parser perl-encode-locale perl-lwp-mediatypes" makedepends="perl-dev" -install= +install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Message-$pkgver.tar.gz" -_builddir="$srcdir/$_realname-$pkgver" +_builddir="$srcdir"/HTTP-Message-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} build() { - cd $_builddir + cd "$_builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || 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 + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="a6b28e44f7b5e5573362f042d522a456 HTTP-Message-6.02.tar.gz" diff --git a/testing/perl-http-message/APKBUILD b/testing/perl-http-message/APKBUILD deleted file mode 100644 index 440db817a..000000000 --- a/testing/perl-http-message/APKBUILD +++ /dev/null @@ -1,39 +0,0 @@ -# Contributor: Natanael Copa <ncopa@alpinelinux.org> -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=perl-http-message -pkgver=6.02 -pkgrel=0 -pkgdesc="HTTP::Message perl module" -url="http://search.cpan.org/dist/HTTP-Message/" -arch="noarch" -license="GPLv2 or Artistic" -depends="perl perl-uri perl-libwww perl-html-parser perl-encode-locale" -makedepends="perl-dev" -install="" -subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Message-$pkgver.tar.gz" - -_builddir="$srcdir"/HTTP-Message-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -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 || return 1 - find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete -} - -md5sums="a6b28e44f7b5e5573362f042d522a456 HTTP-Message-6.02.tar.gz" |