summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5faaa84e5939348ea3576dd435d8d113008a480c (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
# Maintainer: Ondrej Kucera <ondrej.kucera@centrum.cz>
_perlmod=XML-CompactTree
pkgname=perl-xml-compacttree
pkgver=0.03
pkgrel=3
pkgdesc="Builder of compact tree structures from XML documents"
arch=("any")
url="https://metacpan.org/dist/$_perlmod/"
license=('GPL' 'PerlArtistic')
groups=()
depends=('perl')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(https://cpan.metacpan.org/authors/id/P/PA/PAJAS/$_perlmod-$pkgver.tar.gz)
sha256sums=('87faace2f1bfa17bd8afbe6a2794aa881b1d921a93f3f8e3519a879c2e910300')

build() {
  cd "$srcdir/$_perlmod-$pkgver"

  # Install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/$_perlmod-$pkgver"
  make test
}

package() {
  cd "$srcdir/$_perlmod-$pkgver"
  make install DESTDIR="$pkgdir/"
}