updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / perl-tk-codetext / PKGBUILD
blob0ae1b7a186393f0cec0570fbf1c33e73a815a8f7
1 # Contributor: Ondrej Kucera <ondrej.kucera@centrum.cz>
3 pkgname=perl-tk-codetext
4 _realname=Tk-CodeText
5 pkgver=0.3.4
6 pkgrel=3
7 pkgdesc="Tk-CodeText perl module (a TextUndo widget with syntax highlighting capabilities)"
8 arch=("i686" "x86_64")
9 url="http://search.cpan.org/~hanje/Tk-CodeText/"
10 license=("GPL" "Artistic")
11 depends=('perl>=5.10.0' 'perl-tk' 'perl-syntax-highlight-perl')
12 source=(http://search.cpan.org/CPAN/authors/id/H/HA/HANJE/${_realname}-${pkgver}.tar.gz)
13 md5sums=('321bda6595d122f22f4392dfce24d378')
14 options=(!emptydirs)
16 build() {
17   cd ${startdir}/src/${_realname}-${pkgver}
18   # Install module into the vendor directories.
19   perl Makefile.PL INSTALLDIRS=vendor || return 1
20   make || return 1
21   make test || return 1
22   make DESTDIR=${startdir}/pkg install
24   # Remove .packlist and perllocal.pod files.
25   find ${startdir}/pkg -name '.packlist' -delete
26   find ${startdir}/pkg -name 'perllocal.pod' -delete