updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bluefish-svn / PKGBUILD
blob31e26eb91b285cf177493c72f812693b5b034cfd
1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=bluefish-svn
4 pkgver=4057
5 pkgrel=1
6 pkgdesc="SVN version of the programmer's HTML editor written using GTK."
7 arch=('i686' 'x86_64')
8 url="http://bluefish.openoffice.nl"
9 license=('GPL')
10 depends=('aspell>=0.60.4-2' 'libxml2' 'gtk2' 'desktop-file-utils')
11 makedepends=('intltool' 'perlxml' 'pkgconfig' 'subversion')
12 optdepends=('python: for self written extensions')
13 provides=('bluefish')
14 conflicts=('bluefish' 'bluefish-devel' 'bluefish-cvs')
15 install=$pkgname.install
16 source=()
17 md5sums=()
19 _svntrunk=https://bluefish.svn.sourceforge.net/svnroot/bluefish/trunk
20 _svnmod=bluefish
22 build() {
23   cd "${srcdir}"
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
31   msg "SVN checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "${srcdir}/$_svnmod-build"
35   cp -r "${srcdir}/$_svnmod/$_svnmod" "${srcdir}/$_svnmod-build"
36   cd "${srcdir}/$_svnmod-build"
38   ./autogen.sh
39   ./configure \
40     --prefix=/usr \
41     --exec-prefix=/usr \
42     --sysconfdir=/etc \
43     --localstatedir=/var \
44     --with-freedesktop_org-menu=/usr/share/applications \
45     --with-freedesktop_org-mime=/usr/share/mime \
46     --without-gnome2_4-mime \
47     --without-gnome2_4-appreg \
48     --with-icon-path=/usr/share/pixmaps \
49     --disable-update-databases \
50     --disable-xml-catalog-update
52   make || return 1
53   make DESTDIR="${pkgdir}" install
55   rm -rf "${srcdir}/$_svnmod-build" || return 1