aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-02-01 18:15:21 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-02-01 18:48:45 +0100
commit4947846d8ab2fa3d3a75f7efa4c86b3953ae151f (patch)
tree7c5df3a8484686a40fb6d16a25209950353004e8
parent50f3387b6d1b4549d14528a96c3bd6c8117f5e24 (diff)
downloadaports-4947846d8ab2fa3d3a75f7efa4c86b3953ae151f.tar.bz2
aports-4947846d8ab2fa3d3a75f7efa4c86b3953ae151f.tar.xz
testing/perl-libapreq2: modernize
-rw-r--r--testing/perl-libapreq2/APKBUILD22
1 files changed, 9 insertions, 13 deletions
diff --git a/testing/perl-libapreq2/APKBUILD b/testing/perl-libapreq2/APKBUILD
index 2ece8353ae..cf050fde0f 100644
--- a/testing/perl-libapreq2/APKBUILD
+++ b/testing/perl-libapreq2/APKBUILD
@@ -3,41 +3,37 @@
pkgname=perl-libapreq2
_pkgreal=libapreq2
pkgver=2.13
-pkgrel=7
+pkgrel=8
pkgdesc="Perl module for libapreq2"
-url="http://search.cpan.org/dist/libapreq2/"
+url="https://metacpan.org/release/libapreq2/"
arch="all"
license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
depends="apache2 perl"
subpackages="$pkgname-dev $pkgname-doc"
install="$pkgname.post-install"
makedepends="perl-extutils-xsbuilder perl-dev libtool apache2-dev apache2-mod-perl-dev expat-dev apr-util-dev"
-source="http://search.cpan.org/CPAN/authors/id/I/IS/ISAAC/$_pkgreal-$pkgver.tar.gz
+source="https://cpan.metacpan.org/authors/id/I/IS/ISAAC/$_pkgreal-$pkgver.tar.gz
libapreq2-2.08-doc.patch
$pkgname.conf"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
- update_config_guess || return 1
+ default_prepare
+ update_config_guess
}
build() {
- cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
--with-apache2-apxs=/usr/bin/apxs \
- --with-apache2-httpd=/usr/sbin/httpd || return 1
- make || return 1
+ --with-apache2-httpd=/usr/sbin/httpd
+ make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" INSTALLDIRS="vendor" install
+ make DESTDIR="$pkgdir" INSTALLDIRS="vendor" install
install -Dm644 "$srcdir"/$pkgname.conf \
- "$pkgdir"/etc/apache2/conf.d/perl-libapreq2.conf || return 1
+ "$pkgdir"/etc/apache2/conf.d/perl-libapreq2.conf
find "$pkgdir" -name mod_apreq2.la -delete
find "$pkgdir" -name libapreq2.la -delete
}