File PKGBUILD of Package codeblocks-svn

# Maintainer: Roman Konchits <admin at xan dot lt>
# Contributor: Hubert Maraszek <marach5 at gmail dot com>
# Contributor: schtroumpfette

_pkgname=codeblocks
pkgname=codeblocks-svn
pkgver=9764
pkgrel=4
pkgdesc="An open source and cross-platform C/C++ IDE"
arch=('i686' 'x86_64')
url="http://www.codeblocks.org"
license=('GPL')
groups=()
depends=('boost-libs' 'bzip2' 'desktop-file-utils' 'gamin' 'gtk-update-icon-cache'
         'hicolor-icon-theme' 'hunspell' 'shared-mime-info' 'wxgtk2.8' 'libsm')
makedepends=('boost' 'subversion' 'zip')
optdepends=()
provides=('codeblocks=13.12')
conflicts=('codeblocks' 'codeblocks-svn-noplugins')
install=codeblocks-svn.install
options=(!libtool)
source=("${_pkgname}-${pkgver}.tar.gz")
md5sums=('SKIP')

COMPRESSXZ=(xz -c -z -T0 -)
PACKAGER="Firef0x <firefgx#gmail.com>"

build() {
  cd ${_pkgname}-${pkgver}
  export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
  ./bootstrap
  ./configure --prefix=/usr --with-contrib-plugins=all
  make
}

package() {
  cd ${_pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install

  pkgrel=1
}