archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-tk / trunk / PKGBUILD
blobf3a1049b516236f46670ca8188cb373e04446139
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>
6 pkgname=perl-tk
7 pkgver=804.036
8 pkgrel=4
9 pkgdesc="A graphical user interface toolkit for Perl"
10 arch=('x86_64')
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')
19 build() {
20   cd Tk-$pkgver
22   perl Makefile.PL INSTALLDIRS=vendor
23   make
26 check() {
27   cd Tk-$pkgver
28   xvfb-run make -j1 test
31 package() {
32   cd Tk-$pkgver
33   make install DESTDIR="$pkgdir"
35   # license
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