49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-xml-libxml
|
|
pkgver=2.0134
|
|
_debver=2.0134
|
|
_debrel=2
|
|
pkgrel=1
|
|
pkgdesc='Interface to the libxml library'
|
|
arch=('i686' 'x86_64')
|
|
url='http://search.cpan.org/dist/XML-LibXML'
|
|
license=('GPL-1')
|
|
depends=('libxml2' 'perl-xml-sax' 'perl-xml-namespacesupport')
|
|
makedepends=('quilt')
|
|
provides=('perl-libxml' 'perl-xml-libxml-common')
|
|
replaces=('perl-libxml' 'perl-xml-libxml-common')
|
|
options=('!emptydirs')
|
|
install=perl-xml-libxml.install
|
|
source=(https://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz
|
|
https://deb.debian.org/debian/pool/main/libx/libxml-libxml-perl/libxml-libxml-perl_${_debver}+dfsg-${_debrel}.debian.tar.xz)
|
|
sha512sums=('ecd39b8c268ab339d1363333feb4dcde2ec761fb29bc732625e8149ecb6f1c68eea8b76bfccb02df527518650cb3d1b8f14ae2fcd8255f117b5df68912ba2a08'
|
|
'9fd4daca38992d1fb1a665b3b04777658a9f64ce00d374ec8836c7b6938c7f922bfe699f1ec6bd11049a9f5a9a98552d89a99cc7a66653f656b23f2b035f7731')
|
|
|
|
prepare() {
|
|
cd XML-LibXML-$pkgver
|
|
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
|
# Debian patches
|
|
export QUILT_PATCHES=debian/patches
|
|
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
|
export QUILT_DIFF_ARGS='--no-timestamps'
|
|
|
|
rm -rf ./debian
|
|
mv "$srcdir"/debian .
|
|
|
|
quilt push -av
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd XML-LibXML-$pkgver
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd XML-LibXML-$pkgver
|
|
make pure_install doc_install DESTDIR="$pkgdir"/
|
|
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
|
|
}
|