figured it out now!!
]]>==> Local repository updated.
==> GIT checkout done or server timeout.
==> Starting make...
==> Entering fakeroot environment...
==> Starting package()...
CMake Error: The source directory "/tmp/packerbuild-1000/hydrogen-git/hydrogen-git/src/hydrogen-build/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
==> ERROR: A failure occurred in package().
Aborting...
The build failed.
Git should be listed in makedepends.
You should not have to "mkdir" the build directory. If it isn't already there then there certainly isn't a makefile in it to run make on.
The build process (cmake and make) should be in the build function.
]]>That was fast :-)
]]>pkgname=hydrogen-git
pkgver=20120915
pkgrel=1
pkgdesc="Drum Machine and Pattern-based Sequencer"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.hydrogen-music.org/"
depends=('jack' 'liblrdf' 'qt' 'lash' 'libarchive')
provides=('hydrogen')
conflicts=('hydrogen')
_gitroot="https://github.com/hydrogen-music/hydrogen.git"
_gitname="hydrogen"
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d ${srcdir}/$_gitname ] ; then
cd $_gitname && git pull origin master
msg "Local repository updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout."
msg "Starting make..."
rm -rf "${srcdir}/${_gitname}-build"
cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
}
package() {
mkdir -p "${srcdir}/${_gitname}-build/build"
cd "${srcdir}/${_gitname}-build/build"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DWANT_LASH:BOOL=ON -DWANT_LIBARCHIVE:BOOL=ON ..
make DESTDIR="${pkgdir}" install
}