aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-class-xsaccessor/APKBUILD
blob: 44d6b68786b124112e2dee1fe6bdd33ad2406ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-class-xsaccessor
_pkgreal=Class-XSAccessor
pkgver=1.19
pkgrel=1
pkgdesc="Generate fast XS accessors without runtime compilation"
url="http://search.cpan.org/dist/Class-XSAccessor/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="5c5dea74f00ad37c5119dd22b28a5563  Class-XSAccessor-1.19.tar.gz"
sha256sums="99c56b395f1239af19901f2feeb125d9ecb4e351a0d80daa9529211a4700a6f2  Class-XSAccessor-1.19.tar.gz"
sha512sums="58855bb2108b60cc90ae1d1c4d6a011da7bac2d063c7c953ff8610ae164ba60731a664f0fbddf148e1eabb60042913a17633a9c9a8936a23a59130b381bf63f8  Class-XSAccessor-1.19.tar.gz"