1 # Maintainer: Mauro Santos <registo.mailling@gmail.com>
5 pkgdesc="Open-Source & Cross-Platform Text/Hex Editor written in C++ and wxWidgets."
7 url="http://sourceforge.net/projects/madedit/develop"
9 depends=('gtk2>=2.6.0' 'glib2>=2.6.0' 'wxgtk>=2.6.1')
10 makedepends=('subversion' 'boost>=1.33.0' 'wxgtk>=2.6.1')
13 source=(madedit-highlight-blink-fix.patch
14 madedit-onpaint-fix.patch
15 madedit-add-file-changed-event.patch
16 madedit-max-linelength-fix.patch
17 madedit-desktop-file.patch)
18 md5sums=('5e89e938d1122a5fe299a68fc583edb2'
19 '7985f66c07a1e27ee65bc01524274796'
20 '661acd7e6c5f3c53177157f681335459'
21 '9d9e75d6519c723e5870801d5d43bf37'
22 'cdce3aba22e7106a1278a512b7f6a028')
24 _svntrunk="https://madedit.svn.sourceforge.net/svnroot/madedit"
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver)
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_svnmod-build"
40 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
41 cd "$srcdir/$_svnmod-build/trunk/$_svnmod"
43 patch -p0 < "$srcdir/madedit-highlight-blink-fix.patch"
44 patch -p0 < "$srcdir/madedit-onpaint-fix.patch"
45 patch -p0 < "$srcdir/madedit-add-file-changed-event.patch"
46 patch -p0 < "$srcdir/madedit-max-linelength-fix.patch"
47 patch -p0 < "$srcdir/madedit-desktop-file.patch"
49 ./configure --prefix=/usr
54 cd "$srcdir/$_svnmod-build/trunk/$_svnmod"
55 make DESTDIR="$pkgdir/" install