aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-variable-magic/APKBUILD
blob: db99d3549cce462933b1d0a230d02ff7835af9de (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
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-variable-magic
_pkgreal=Variable-Magic
pkgver=0.52
pkgrel=0
pkgdesc="Associate user-defined magic to variables from Perl."
url="http://search.cpan.org/dist/Variable-Magic/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

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

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

md5sums="3c3cb6b8adc20616f1e71af145ee73c1  Variable-Magic-0.52.tar.gz"
sha256sums="0abbdb5cf512d000657195741c731ecec8cb223e1fb7607ef1df11306d22db8d  Variable-Magic-0.52.tar.gz"
sha512sums="f7280314679945d07cbdd1f09181510395a7a49a4895775f6a2f319db3009886e2268dee4d5d771b079ba1d52dc545da2fd0a507784de4422a7dc80476b4a846  Variable-Magic-0.52.tar.gz"