blob: 8fe3dd65f6ad2d6005a5f5438e7f8b2ec238e6af (
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:
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>
pkgname=perl-wx
pkgver=0.9932
pkgrel=5
pkgdesc="Interface to the wxWidgets cross-platform GUI toolkit"
arch=('x86_64')
url="https://metacpan.org/dist/Wx"
license=('GPL' 'PerlArtistic')
depends=('perl-alien-wxwidgets' 'perl-extutils-xspp' 'wxgtk3')
makedepends=('perl-module-build')
#checkdepends=('xorg-server-xvfb')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/M/MD/MDOOTSON/Wx-$pkgver.tar.gz"
'gtk3.patch')
sha256sums=('1cfdb6535a0f4676e6f1aab2c9d8e16d577be3eb3b7cc04c8074d685e6651b70'
'61fca0928af91231988779b74b2aa735f92bea40804c3c50aaa8cac4ac5b3f1b')
prepare() {
cd "Wx-$pkgver"
# Fixes for GTK3 compatibility
patch -Np1 -i ../gtk3.patch
}
build(){
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
WX_CONFIG=/usr/bin/wx-config-gtk3 \
MODULEBUILDRC=/dev/null
cd "Wx-$pkgver"
perl Makefile.PL
make
}
#check(){
# cd "Wx-$pkgver"
# 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 "Wx-$pkgver"
make DESTDIR="$pkgdir" install
}
|