summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b9cf127e894449b08e27b9485b09f52eaf69605 (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
# Maintainer: Ondrej Kucera <ondrej.kucera@centrum.cz>
# Contributor: James An <james@jamesan.ca>
_perlmod=XML-XSH2
pkgname=xsh
pkgver=2.1.26
pkgrel=1
pkgdesc="XSH - XML editing shell"
arch=("any")
url="http://xsh.sourceforge.net/"
license=('GPL' 'PerlArtistic')
groups=()
depends=('perl>=5.10.0' 'perl-io-stringy' 'perl-term-readline' 'perl-parse-recdescent' 'perl-xml-libxslt' 'perl-xml-sax-writer' 'perl-xml-xupdate-libxml' 'perl-xml-filter-domfilter-libxml' 'perl-uri')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHOROBA/$_perlmod-$pkgver.tar.gz)
sha512sums=('2c4213e296aa786bc1b43ebc3656c4a0f750904884fd77721c540ad9e326d9081a18e4f30d75a89aacc28e8b672e3eff702080fc5c36ffcc8ea621dff49c07e4')

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/"
}