1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: François Charette <francois ατ archlinux δοτ org>
3 # Contributor: Jason Chu <jchu@xentac.net>
4 # Contributor: Juergen Hoetzel <juergen@archlinux.org>
9 pkgdesc="A graphical user interface toolkit for Perl"
11 url="https://search.cpan.org/dist/Tk"
12 license=('PerlArtistic' 'GPL' 'custom')
13 depends=('libpng' 'libjpeg' 'libx11' 'perl')
14 checkdepends=('xorg-server-xvfb' 'perl-devel-leak' 'perl-test-pod' 'ttf-font')
15 options=('!emptydirs' '!strip')
16 source=("https://www.cpan.org/authors/id/S/SR/SREZIC/Tk-$pkgver.tar.gz")
17 sha512sums=('7d8b82127a5fdbb2f0387f541af8844a09f1230f377b92d511ecb12e81bfd5ef56d4fe925cac064a798a96a003bb8465b6df37cff18a960f3631bb3a214cd812')
22 perl Makefile.PL INSTALLDIRS=vendor
28 xvfb-run make -j1 test
33 make install DESTDIR="$pkgdir"
36 install -D -m644 pTk/license.terms \
37 "$pkgdir"/usr/share/licenses/$pkgname/tk.license
38 install -D -m644 pTk/Tix.license \
39 "$pkgdir"/usr/share/licenses/$pkgname/tix.license