updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hydrogen-svn / PKGBUILD
blob407524ee6e4642c8f6d80bb9f2b8b5e3b2043bb5
1 # Maintainer: Mario Kozjak <kozjakm1 at google's mail dot com!> and "archman-cro" at bbs.archlinux.org
2 pkgname=hydrogen-svn
3 pkgver=2257
4 pkgrel=1
5 pkgdesc="Drum Machine and Pattern-based Sequencer"
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 url="http://www.hydrogen-music.org/"
9 depends=('jack' 'liblrdf' 'qt' 'lash' 'libarchive')
10 provides=('hydrogen')
11 conflicts=('hydrogen')
13 _svntrunk=http://svn.assembla.com/svn/hydrogen/trunk
14 _svnmod=hydrogen
16 build() {
17   cd "${srcdir}"
19   if [ -d $_svnmod/.svn ]; then
20     (cd ${_svnmod} && svn up -r ${pkgver})
21   else
22     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
23   fi
25   msg "SVN checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "${srcdir}/${_svnmod}-build"
29   cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
30   mkdir "${srcdir}/${_svnmod}-build/build"
33 package() {  
34   cd "${srcdir}/${_svnmod}-build/build"
36   cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DWANT_LASH:BOOL=ON -DWANT_LIBARCHIVE:BOOL=ON ..
37   make DESTDIR="${pkgdir}" install