summaryrefslogtreecommitdiff
path: root/experimental/perl-task-freecellsolver-testing/APKBUILD
blob: 5176d50b0f3461b3f82b065113dc5e520568313d (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
36
37
38
39
40
41
42
43
44
45
46
# Automatically generated by apkbuild-cpan, template 1
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=perl-task-freecellsolver-testing
_pkgreal=Task-FreecellSolver-Testing
pkgver=0.0.11
pkgrel=0
pkgdesc="Perl module for testing the Freecell Solver package"
url="http://search.cpan.org/dist/Task-FreecellSolver-Testing/"
arch="noarch"
license="MIT"
cpandepends=""
cpanmakedepends="perl-module-build"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"

prepare() {
	cd "$builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	fi
}

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

check() {
	cd "$builddir"
	./Build test
}

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

sha512sums="85c3d7e68e0fa14abac2442ec7b6e90cc4df9f6733fbd87e5a872043a03a71d8cd3a262c816d861a1c729646ff379665c1d5d6e0bc80ae476db089d9d3793b82  Task-FreecellSolver-Testing-v0.0.11.tar.gz"