mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 14:57:14 +08:00
36 lines
887 B
Bash
36 lines
887 B
Bash
# Platform packages for Chakra
|
|
|
|
pkgname=gtk2-perl
|
|
pkgver=1.241
|
|
pkgrel=2
|
|
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')
|
|
options=('!emptydirs')
|
|
source=(http://downloads.sourceforge.net/sourceforge/gtk2-perl/Gtk2-${pkgver}.tar.gz)
|
|
md5sums=('82ee2af46ef9ab7b560601e3ae6f8f7a')
|
|
|
|
build() {
|
|
cd "${srcdir}/Gtk2-${pkgver}"
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
true
|
|
# currently not working, X issue
|
|
#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}"
|
|
}
|