core/gtk2-perl/PKGBUILD

34 lines
846 B
Bash
Raw Normal View History

2012-05-10 06:07:17 +08:00
# Platform packages for Chakra
2010-03-14 23:48:48 +08:00
pkgname=gtk2-perl
2012-05-10 06:07:17 +08:00
pkgver=1.241
2010-03-14 23:48:48 +08:00
pkgrel=1
2012-05-10 06:07:17 +08:00
pkgdesc="Perl bindings for GTK+ 2.x"
2010-03-14 23:48:48 +08:00
arch=(i686 x86_64)
license=('LGPL')
url="http://gtk2-perl.sourceforge.net/"
makedepends=('perl-extutils-pkgconfig' 'perl-extutils-depends')
2012-05-10 06:07:17 +08:00
depends=('gtk2' 'pango-perl')
checkdepends=('ttf-dejavu' 'xorg-server-xvfb')
2010-03-14 23:48:48 +08:00
options=('!emptydirs')
2012-05-10 06:07:17 +08:00
source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Gtk2-${pkgver}.tar.gz)
md5sums=('82ee2af46ef9ab7b560601e3ae6f8f7a')
2010-03-14 23:48:48 +08:00
build() {
2012-05-10 06:07:17 +08:00
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 $!
}
2010-03-14 23:48:48 +08:00
2012-05-10 06:07:17 +08:00
package() {
cd "${srcdir}/Gtk2-${pkgver}"
make install DESTDIR="${pkgdir}"
2010-03-14 23:48:48 +08:00
}