summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a7b3191a3f1c39e9a2bc38d4a6caea225eb406f (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=Tk-CodeText
pkgname=perl-tk-codetext
pkgver=0.3.4
pkgrel=4
pkgdesc="Tk-CodeText perl module (a TextUndo widget with syntax highlighting capabilities)"
arch=("any")
url="http://search.cpan.org/~hanje/Tk-CodeText/"
license=('GPL' 'PerlArtistic')
groups=()
depends=('perl>=5.10.0' 'perl-tk' 'perl-syntax-highlight-perl')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(http://search.cpan.org/CPAN/authors/id/H/HA/HANJE/$_perlmod-$pkgver.tar.gz)
md5sums=('321bda6595d122f22f4392dfce24d378')

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