aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-ref-util-xs/APKBUILD
blob: 84c4b0f3e878006c18a52be10450ff4f4a49c37d (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Sergey Safarov <s.safarov@gmail.com>
pkgname=perl-ref-util-xs
_pkgreal=Ref-Util-XS
pkgver=0.117
pkgrel=0
pkgdesc="XS implementation for Ref::Util"
url="http://search.cpan.org/dist/Ref-Util-XS/"
arch="all"
license="MIT"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/$_pkgreal-$pkgver.tar.gz"

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

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	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
}

sha512sums="5ebcd1bfd6c4b94c17f24c890342d4fba74a7a7c09b3d338208cd5d3fe6b6dd2c504c86ab555c27781b5ede2633d012bb7df819029ce89bec6bc269e21d567a0  Ref-Util-XS-0.117.tar.gz"