aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-refcount/APKBUILD
blob: 81af23396a00fe7d568de5f600ee7d26bf5d70ce (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
40
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-test-refcount
_pkgreal=Test-Refcount
pkgver=0.08
pkgrel=0
pkgdesc="assert reference counts on objects"
url="http://search.cpan.org/dist/Test-Refcount/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
		export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

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

md5sums="bcf11e5f0103568674bcc15d2168932e  Test-Refcount-0.08.tar.gz"
sha256sums="90adbb5c8676953575d95e867b7aae763120de146268b7f4c00543e2c748cad7  Test-Refcount-0.08.tar.gz"
sha512sums="9a5ffe332f9a61c2f019963f49117f4a6af0b855371cd6aa24cc5e3edd7ee6caa54f25bcdd1edf57044c764030f8db37a1ee232d49130656643135cfac96d570  Test-Refcount-0.08.tar.gz"