summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb2cb1db11a37f9eab3ba2244aaab76c34e97ba3 (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
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=cstools
pkgver=3.42
pkgrel=3
pkgdesc="Tools for dealing with Czech texts in Perl"
arch=('any')
url="https://metacpan.org/release/Cstools"
license=('custom')
depends=('perl')
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/J/JA/JANPAZ/Cstools-$pkgver.tar.gz)
md5sums=('ea18f2a24ef5de92483a5e03ed9d2659')

build() {
  cd "${srcdir}"/Cstools-$pkgver
  perl Makefile.PL
  make
}

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

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

#license
  install -d "${pkgdir}"/usr/share/licenses/${pkgname}/
  sed '84,86p;d' README > "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}