diff options
author | root <root@rshg054.dnsready.net> | 2011-11-29 23:14:46 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-29 23:14:46 +0000 |
commit | 946f0c9fe48dfb648a8a0be065e92f237ce210fd (patch) | |
tree | 13387ae15c5ab9a50acdaa6ab02a076319c19047 /extra/gtk2-perl | |
parent | 83c3c42a38bda36bdc56d594318958bc4cfd9b32 (diff) |
Tue Nov 29 23:14:46 UTC 2011
Diffstat (limited to 'extra/gtk2-perl')
-rw-r--r-- | extra/gtk2-perl/PKGBUILD | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/extra/gtk2-perl/PKGBUILD b/extra/gtk2-perl/PKGBUILD index 215b21109..84a7b8efe 100644 --- a/extra/gtk2-perl/PKGBUILD +++ b/extra/gtk2-perl/PKGBUILD @@ -1,25 +1,35 @@ -# $Id: PKGBUILD 124902 2011-05-25 01:27:30Z foutrelis $ +# $Id: PKGBUILD 143696 2011-11-28 13:05:23Z jgc $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Sarah Hay <sarah@archlinux.org> pkgname=gtk2-perl -_realname=Gtk2 -pkgver=1.222 -pkgrel=3 -pkgdesc="Gtk2-Perl allows Perl developers to write GTK+ 2.x applications." +pkgver=1.241 +pkgrel=1 +pkgdesc="Perl bindings for GTK+ 2.x" arch=(i686 x86_64) license=('LGPL') url="http://gtk2-perl.sourceforge.net/" makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends') depends=('gtk2' 'pango-perl') +checkdepends=('ttf-dejavu' 'xorg-server-xvfb') options=('!emptydirs') -source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/${_realname}-${pkgver}.tar.gz) -md5sums=('8f8a170b33dc2cf4e69769e97c05185a') +source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Gtk2-${pkgver}.tar.gz) +md5sums=('82ee2af46ef9ab7b560601e3ae6f8f7a') build() { - cd "${srcdir}/${_realname}-${pkgver}" - # install module in vendor directories. + cd "${srcdir}/Gtk2-${pkgver}" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make +} + +check() { + cd "${srcdir}/Gtk2-${pkgver}" + LD_PRELOAD="" Xvfb -nolisten tcp -extension GLX -screen 0 1280x1024x24 :99 & + LD_PRELOAD="" DISPLAY=:99 make test + kill $! +} + +package() { + cd "${srcdir}/Gtk2-${pkgver}" make install DESTDIR="${pkgdir}" } |