aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-xml-libxml/APKBUILD
blob: c08e8d2d4f8aeae5d5e4b89c572faf166a8331cb (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-xml-libxml
_pkgreal=XML-LibXML
pkgver=2.0132
pkgrel=1
pkgdesc="Interface to Gnome libxml2 xml parsing and DOM library"
url="http://search.cpan.org/dist/XML-LibXML/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-xml-sax perl-xml-namespacesupport"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends libxml2-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_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
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="3df1cb67ea955133492f2b6f8def2b28079c59e99170a31820aca69ea81686c4b67171509f1b311faab9389d200c4a24942b3950d7c0730ff1233a009b398fce  XML-LibXML-2.0132.tar.gz"