db-move: moved gnome-weather from [staging] to [testing] (any)
[arch-packages.git] / perl-xml-simple / repos / extra-any / PKGBUILD
blob79a18fbaacef23fdc282d3ca3aa4a57344ca6dfc
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: kleptophobiac@gmail.com
5 pkgname=perl-xml-simple
6 _realname=XML-Simple
7 pkgver=2.25
8 pkgrel=7
9 pkgdesc="Simple XML parser for perl"
10 arch=('any')
11 license=('PerlArtistic')
12 url="https://search.cpan.org/dist/${_realname}/"
13 depends=('perl-xml-sax-expat')
14 options=('!emptydirs')
15 source=("https://www.cpan.org/authors/id/G/GR/GRANTM/${_realname}-${pkgver}.tar.gz")
16 sha512sums=('0f1a6a1bdb8f6ac6fa4deef33d09930eb4758b4a3ed4431624004ffa2b1eb02f0d6ce14cb4942162cb76f7aa39fea4ec6a71e1eb9ebd464b710db7024bdd990c')
18 build() {
19   cd "${srcdir}/${_realname}-${pkgver}"
20   perl Makefile.PL INSTALLDIRS=vendor
21   make
24 check() {
25   cd "${srcdir}/${_realname}-${pkgver}"
26   make test
29 package() {
30   cd "${srcdir}/${_realname}-${pkgver}"
31   make DESTDIR="${pkgdir}" install