aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-02-27 02:06:15 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-02-27 06:42:09 +0000
commit8c15987c61ae41ab1358e8a819ccaaf581997ae0 (patch)
tree03f29fbc2a734cee9a99ee6819e47c231e4485a5
parentc2b4aba4b85104764556875830ed09bde525d8d5 (diff)
downloadaports-8c15987c61ae41ab1358e8a819ccaaf581997ae0.tar.gz
aports-8c15987c61ae41ab1358e8a819ccaaf581997ae0.tar.bz2
aports-8c15987c61ae41ab1358e8a819ccaaf581997ae0.tar.xz
main/perl-class-accessor: modernize
-rw-r--r--main/perl-class-accessor/APKBUILD20
1 files changed, 3 insertions, 17 deletions
diff --git a/main/perl-class-accessor/APKBUILD b/main/perl-class-accessor/APKBUILD
index 4a649da538..23c7c1aff3 100644
--- a/main/perl-class-accessor/APKBUILD
+++ b/main/perl-class-accessor/APKBUILD
@@ -2,41 +2,27 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-accessor
pkgver=0.51
-pkgrel=1
+pkgrel=2
pkgdesc="Class::Accessor perl module"
-url="https://search.cpan.org/dist/Class-Accessor/"
+url="https://metacpan.org/pod/Class::Accessor"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl"
makedepends="perl-dev"
-install=""
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/K/KA/KASEI/Class-Accessor-$pkgver.tar.gz"
-
-_builddir="$srcdir"/Class-Accessor-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i;;
- esac
- done
-}
+builddir="$srcdir"/Class-Accessor-$pkgver
build() {
- cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$_builddir"
make test
}
package() {
- cd "$_builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}