updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nootka-hg / PKGBUILD
blob6b1728bfae4f6e0bcd3adb91ddd9a3e270f930e6
1 pkgname=nootka-hg
2 _pkgname=nootka
3 pkgver=683
4 pkgrel=1
5 pkgdesc="A open-source application to help with learning classical score notation."
6 arch=('i686' 'x86_64')
7 url="http://${_pkgname}.sourceforge.net/"
8 license=('GPL')
9 depends=('qt' 'fftw' 'shared-mime-info')
10 makedepends=('mercurial' 'cmake')
11 install="${pkgname}.install"
13 _hgroot="https://${_pkgname}.googlecode.com/hg/"
14 _hgrepo="${_pkgname}"
16 build() {
17   cd "${srcdir}"
18   msg2 "Connecting to Mercurial server...."
19   if [ -d ${_hgrepo} ] ; then
20     cd ${_hgrepo} && hg pull -u
21     msg2 "Local files are up to date."
22   else
23     hg clone ${_hgroot} ${_hgrepo}
24   fi
25   msg2 "Mercurial checkout done or server timeout."
26   if [[ -d "${srcdir}/${_pkgname}/build" ]]; then
27     msg2 "Cleaning the previous build directory..."
28     rm -rf "${srcdir}/${_pkgname}/build"
29   fi
30   mkdir -p "${srcdir}/${_pkgname}/build"
31   cd "${srcdir}/${_pkgname}/build"
32   cmake .. -DCMAKE_INSTALL_PREFIX='/usr'
35 package() {
36   cd "${srcdir}/${_pkgname}/build"
37   make DESTDIR="${pkgdir}" install