blob: 154836939f316b77f9be487400640d61580f42b6 (
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
42
43
44
45
46
47
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=perl-xml-sax
pkgver=0.99
pkgrel=2
pkgdesc="Simple API for XML"
url="http://search.cpan.org/dist/XML-SAX"
arch="noarch"
license="GPL"
depends="perl-xml-sax-base perl-xml-namespacesupport"
depends_dev=""
makedepends="perl-dev"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz
perl-xml-sax.patch"
_builddir="$srcdir"/XML-SAX-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="290f5375ae87fdebfdb5bc3854019f24 XML-SAX-0.99.tar.gz
f114c4aad3221d3e7d8314d13b84a869 perl-xml-sax.patch"
sha256sums="32b04b8e36b6cc4cfc486de2d859d87af5386dd930f2383c49347050d6f5ad84 XML-SAX-0.99.tar.gz
cf5452ccd81b7eb9cd50315a25747099628a6c0442ea3a6c3849edc3e7e4af18 perl-xml-sax.patch"
sha512sums="f0c55efee4e3010deb474377394f9635bd8adc50108b562aeef54a2eef312cf87fb240d0495b5a5bd0c4cd5251db1bc74ba6cb549614708b1627f330959735e1 XML-SAX-0.99.tar.gz
aca374f7a523ca8db57651789d83950bf77fce5e230fe5f2ba84880fe0602943d381ef08f9519d6fcf584d1b5ae8e33478ae536bbfbdb26202f31a0676f417a1 perl-xml-sax.patch"
|