summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-tk/PKGBUILD
blob: 6d9a17a61c744b94fd8881959b5d6a52a0256b89 (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
39
40
41
42
43
44
45
46
47
48
# $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: François Charette <francois ατ archlinux δοτ org>
# Contributor: Jason Chu <jchu@xentac.net>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>

pkgname=perl-tk
pkgver=804.032
pkgrel=3
pkgdesc="A graphical user interface toolkit for Perl"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Tk"
license=('PerlArtistic' 'GPL' 'custom')
depends=('libpng' 'libjpeg' 'tk' 'perl')
options=('!emptydirs' '!strip')
source=(http://www.cpan.org/authors/id/S/SR/SREZIC/Tk-${pkgver}.tar.gz
        https://github.com/eserte/perl-tk/commit/ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b.patch
        https://github.com/eserte/perl-tk/commit/1ca4589ef5a87999ec564081900bc8fdaed83c74.patch)

build() {
  cd Tk-$pkgver

  # FS#40692
  patch -p1 -i ../1ca4589ef5a87999ec564081900bc8fdaed83c74.patch
  patch -p1 -i ../ba3a92a779f7adcf655b7e45b40ee5b0cb79bc8b.patch

  perl Makefile.PL INSTALLDIRS=vendor
  make
}

#check() {
#  cd Tk-$pkgver
#  make test
#}

package() {
  cd Tk-$pkgver
  make install DESTDIR="$pkgdir"

  # license
  install -D -m644 pTk/license.terms \
                   "${pkgdir}/usr/share/licenses/${pkgname}/tk.license"
  install -D -m644 pTk/Tix.license \
                   "${pkgdir}/usr/share/licenses/${pkgname}/tix.license"
}
md5sums=('47a84c70d1fd254ccece208303e6e9d5'
         '27c00e07b221a41dd6113e677c15af5d'
         'ea4ef20075bfd7da735a87245feeb061')