You are not logged in.

#1 2008-06-11 13:16:54

Manji
Member
Registered: 2006-02-11
Posts: 12

[Request] libmusicbrainz 3

Hello,
I wanted to build the new Pinkytagger 2.0 but it needs libmusicbrainz version 3. Building libmusicbrainz is a bit difficult for me is there someone who could help me out with this?
gretz

Offline

#2 2008-06-11 18:04:52

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] libmusicbrainz 3

Try

pkgname=libmusicbrainz  
pkgver=3.0.1
pkgrel=1 
pkgdesc="a development library geared towards developers who wish to add MusicBrainz lookup capabilities to their applications"
url="http://musicbrainz.org/"
arch=('i686')
license=('GPL')
depends=('neon' 'libdiscid')
source=(ftp://ftp.musicbrainz.org/pub/musicbrainz/$pkgname-$pkgver.tar.gz \
  gcc4.3.patch)
md5sums=('d42110ae548dae1eea73e83b03a1a936' '9db443a7c38be2f4f246d9a8e450ef02')
build() {
  cd $startdir/src/$pkgname-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . || return 1
  patch -p1 <../gcc4.3.patch || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install
}

together with the patch

diff -ruN libmusicbrainz-3.0.1.orig/src/utils_private.cpp libmusicbrainz-3.0.1.new/src/utils_private.cpp
--- libmusicbrainz-3.0.1.orig/src/utils_private.cpp    2008-06-11 19:58:50.000000000 +0200
+++ libmusicbrainz-3.0.1.new/src/utils_private.cpp    2008-06-11 19:59:43.000000000 +0200
@@ -26,6 +26,7 @@
 #include <map>
 #include <ne_uri.h> 
 #include "utils_private.h"
+#include <cstdlib>
 
 using namespace std;
 using namespace MusicBrainz;

Last edited by Stefan Husmann (2008-06-11 18:18:43)

Offline

#3 2008-06-11 19:25:42

Manji
Member
Registered: 2006-02-11
Posts: 12

Re: [Request] libmusicbrainz 3

Thanks alot!! It works great. After adding x86:64 it also runs on arch64.
Thanks again!

Offline

#4 2008-06-27 20:38:38

brynjolf
Member
From: Sweden
Registered: 2008-05-25
Posts: 63

Re: [Request] libmusicbrainz 3

Stefan, can you upload your package to AUR? I would like to package pinkytagger.
Or if you don't want to, can I?


Cerebral: "Welcome to the distro.  You'll never leave.  Mwahaha"

Offline

#5 2008-06-28 09:05:08

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] libmusicbrainz 3

No need to ask! Feel free.

Offline

Board footer

Powered by FluxBB