updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / madedit-svn / PKGBUILD
blobc96bb26dd0f7b4d6980b556a387c6109c024b7c3
1 # Maintainer: Mauro Santos <registo.mailling@gmail.com>
2 pkgname=madedit-svn
3 pkgver=585
4 pkgrel=1
5 pkgdesc="Open-Source & Cross-Platform Text/Hex Editor written in C++ and wxWidgets."
6 arch=('i686' 'x86_64')
7 url="http://sourceforge.net/projects/madedit/develop"
8 license=('GPL')
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')
11 provides=('madedit')
12 conflicts=('madedit')
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"
25 _svnmod="madedit"
27 build() {
28   cd "$srcdir"
30   if [ -d $_svnmod/.svn ]; then
31     (cd $_svnmod && svn up -r $pkgver)
32   else
33     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
34   fi
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
50   make
53 package() {
54   cd "$srcdir/$_svnmod-build/trunk/$_svnmod"
55   make DESTDIR="$pkgdir/" install