summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89a9eebe02a50b4b65d157d40bc94cf1b89ba9ca (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
54
55
56
57
58
# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>

_author=A/AZ/AZAWAWI
_perlmod=Wx-Scintilla
pkgname=perl-wx-scintilla
pkgver=0.39
pkgrel=5
pkgdesc='Wx::Scintilla - Scintilla source code editing component for wxWidgets'
arch=('i686' 'x86_64')
url="http://search.cpan.org/~azawawi/Wx-Scintilla/"
license=('GPL' 'PerlArtistic')
depends=(
perl
wxgtk
)
makedepends=(
perl-alien-wxwidgets
perl-extutils-xspp
perl-test-simple
perl-wx
perl-module-build
)
provides=(
perl-wx-scintilla-constant
perl-wx-scintilla-textctrl
perl-wx-scintilla-textevent
perl-wx-scintillatextctrl
perl-wx-scintillatextevent
)
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz"
remove-uneeded-libs.patch
https://rt.cpan.org/Ticket/Attachment/1643625/881456/Fix_STC_compilation_with_GCC6.patch
)
sha256sums=('d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea'
            '53d8f6018affd735b4deb5d80128c9a0106185ddab5ed53f1409975319188e52'
            'f6e31893d71e1fc7ba10f7ad33bf478be952442ecf718e615ec28532e9527401')
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null
prepare(){
  cd "$srcdir/$_perlmod-$pkgver"
  patch -Np1 -i "$srcdir/remove-uneeded-libs.patch"
  patch -Np1 -i "$srcdir/Fix_STC_compilation_with_GCC6.patch"
#   patch -Np1 -i "$srcdir/p.patch"
}
build(){
  cd "$srcdir/$_perlmod-$pkgver"
  perl Build.PL
  ./Build
}
check(){
  cd "$srcdir/$_perlmod-$pkgver"
  ./Build test
}
package(){
  cd "$srcdir/$_perlmod-$pkgver"
  ./Build install --installdirs=vendor --destdir="$pkgdir"
}