hydrogen update/rebuild for libarchive, ported to testing git

This commit is contained in:
Anke 2012-04-01 02:36:10 +00:00
parent 44835a6407
commit 741c2fe72f
5 changed files with 80 additions and 0 deletions

5
hydrogen/ChangeLog Normal file
View File

@ -0,0 +1,5 @@
2010-10-06 Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
* 0.9.4.2-1 :
Imported from Arch Linux's 'hydrogen' build package:
http://repos.archlinux.org/wsvn/packages/hydrogen/trunk/PKGBUILD?rev=91083&peg=91083

40
hydrogen/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=hydrogen
pkgver=0.9.5.1
pkgrel=1
pkgdesc="Advanced drum machine."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.hydrogen-music.org/"
depends=('alsa-lib' 'flac' 'jack' 'libarchive' 'liblrdf' 'libsndfile' 'qt' 'tar' 'zlib')
makedepends=('scons')
categories=('multimedia')
changelog=ChangeLog
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
lrdf_raptor2.patch
hydrogen-0.9.5-install.patch)
md5sums=('52f3a528705818c65acf546a3be4c6fb'
'2124851e890f46158189b5fa90006d40'
'ce3a83a069b55e46aa532b55e803c9a5')
build() {
cd $srcdir/$pkgname-$pkgver
msg "Compiling..."
export QTDIR=/usr
patch -Np1 -i "${srcdir}/lrdf_raptor2.patch"
patch -Np0 -i "${srcdir}/hydrogen-0.9.5-install.patch"
scons \
prefix=/usr \
libarchive=1
}
package() {
cd $srcdir/$pkgname-$pkgver
scons DESTDIR="$pkgdir" install
}

View File

@ -0,0 +1,12 @@
*** Sconstruct.org 2011-11-06 12:15:40.018119106 +0100
--- Sconstruct 2011-11-06 12:16:21.124122432 +0100
***************
*** 298,304 ****
for N in glob.glob('./data/i18n/hydrogen.*'):
env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data/i18n', source=N))
- env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/img"))
#add every img in ./data/img to the install list.
os.path.walk("./data/img/",install_images,env)
--- 298,303 ----

12
hydrogen/install.patch Normal file
View File

@ -0,0 +1,12 @@
*** Sconstruct.org 2011-11-06 12:15:40.018119106 +0100
--- Sconstruct 2011-11-06 12:16:21.124122432 +0100
***************
*** 298,304 ****
for N in glob.glob('./data/i18n/hydrogen.*'):
env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data/i18n', source=N))
- env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/img"))
#add every img in ./data/img to the install list.
os.path.walk("./data/img/",install_images,env)
--- 298,303 ----

View File

@ -0,0 +1,11 @@
diff -baur hydrogen-0.9.5.old/Sconstruct hydrogen-0.9.5/Sconstruct
--- hydrogen-0.9.5.old/Sconstruct 2011-08-11 18:00:07.889112348 +0800
+++ hydrogen-0.9.5/Sconstruct 2011-08-11 18:00:34.945632437 +0800
@@ -83,6 +83,7 @@
includes.append( './' )
includes.append( 'gui/src/' )
includes.append( '3rdparty/install/include' )
+ includes.append( '/usr/include/raptor2' )
if sys.platform == "darwin":
ldflags.append( '-L/opt/local/lib' )