Commit 8c15987c authored by J0WI's avatar J0WI Committed by Leo

main/perl-class-accessor: modernize

parent c2b4aba4
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment