aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-xml-generator/APKBUILD
blob: 97991519024e113beca3c4479df54534903cbd67 (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: 
# Maintainer: 
pkgname=perl-xml-generator
_pkgreal=XML-Generator
pkgver=1.04
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/XML-Generator/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BH/BHOLZMAN/$_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="1ea1e239bdf3fd6f762c484753776626  XML-Generator-1.04.tar.gz"
sha256sums="b0b6e3b69ce2c08f2ba00a37041bce08a3524b8a76de7ef781e92bfac2d92994  XML-Generator-1.04.tar.gz"
sha512sums="ce151a2d575c9ec4cd42819a5d573bfc4985e0daa3945c310d61bb0a6376e4b8a0dcef5ce89e444795d99c9751719d45981675d1418ba6d729d152187688d552  XML-Generator-1.04.tar.gz"