blob: 2fea6ed1c501fab94ae64c689067898245c9072d (
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
49
50
51
52
53
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Piotr Rogoza <piotr dot r dot public at gmail dot com>
pkgname=perl-wx
pkgver=0.9929
_author=M/MD/MDOOTSON
_perlmod=Wx
pkgrel=1
_distdir="${_perlmod}-${pkgver}"
pkgdesc="Wx - interface to the wxWidgets GUI toolkit"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Wx"
license=('GPL' 'PerlArtistic')
depends=(
'perl-alien-wxwidgets>=0.25'
'wxgtk')
makedepends=(
'perl-extutils-makemaker>=6.48'
'perl-extutils-parsexs>=3.15'
'perl-extutils-xspp>=0.16.02'
'perl-if>=0.03'
'perl-pathtools>=0.82'
'perl-test-harness>=2.26'
'perl-test-simple>=0.45'
'webkitgtk2'
'xorg-server-xvfb')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha512sums=('50daf915cb42d89d6da7c7bddbc7b07fa6b721c94796c5543bb6f9f3cbb9c52be4c228c2195d11e3b0320fe357131dbbd31c064588170ac6306802e02835b183')
build(){
cd "${srcdir}/${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
check(){
cd "${srcdir}/${_distdir}"
if [[ -z "$DISPLAY" || -x /usr/bin/xvfb-run ]]; then
# warning 'Empty $DISPLAY - falling back to xvfb-run (xorg-server-xvfb)'
xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" make test
else
make test
fi
}
package(){
cd "${srcdir}/${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|