You are not logged in.
This was requested in a comment on the hydrogen-svn aur page. I converted that PKGBUILD into one to build hydrogen from its new git repository.
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
}
Offline
You may want to post it (or a link to this thread) in the comments too :-)
That was fast :-)
Last edited by karol (2012-09-18 22:48:50)
Offline
A couple comments:
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.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
the build fail for me using this but works using the git tree or link from H2's website:
==> 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.
Offline
any help at all with this?
figured it out now!!
Last edited by funkmuscle (2012-11-05 02:00:23)
Offline