mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
25 lines
875 B
Bash
25 lines
875 B
Bash
# Contributor: Tim Yang <tdy@gmx.com>
|
|
# Contributor: François Charette <firmicus ατ gmx δοτ net>
|
|
pkgname=perl-class-accessor
|
|
pkgver=0.34
|
|
pkgrel=1
|
|
pkgdesc="Automated accessor generation"
|
|
arch=(any)
|
|
url="http://search.cpan.org/dist/Class-Accessor/"
|
|
license=('GPL' 'PerlArtistic')
|
|
depends=('perl>=5.10.0')
|
|
options=('!emptydirs')
|
|
source=(http://www.cpan.org/authors/id/K/KA/KASEI/Class-Accessor-$pkgver.tar.gz)
|
|
md5sums=('0d9640d237a13276145f7e44b4855b89')
|
|
|
|
build() {
|
|
cd "$srcdir/Class-Accessor-$pkgver"
|
|
eval `perl -V:archname`
|
|
perl Makefile.PL \
|
|
INSTALLARCHLIB=/usr/lib/perl5/current/$archname \
|
|
INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
|
|
INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/$archname || return 1
|
|
make || return 1
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
find "$pkgdir" \( -name '.packlist' -o -name '*.pod' \) -delete
|
|
}
|