You are not logged in.

#1 2006-03-02 22:05:39

johntramp
Member
Registered: 2006-03-02
Posts: 21

MusicBrainz Picard Tagger?

Hey.  Has anyone here managed to get the Picard tagger running on Arch?

http://wiki.musicbrainz.org/PicardTagger
https://musicbrainz.helixcommunity.org/

Offline

#2 2006-03-03 10:21:35

murkus
Member
From: Europe/Helsinki
Registered: 2004-03-19
Posts: 254

Re: MusicBrainz Picard Tagger?

I tried to build it twice but didn't get it to work. It'd be super if someone could.. smile

Offline

#3 2006-03-03 10:56:39

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: MusicBrainz Picard Tagger?

I never got it to build either.  It'll be great when it finally... works. tongue

Offline

#4 2006-03-03 17:55:50

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

I just got it running here. picard itself doesn't need building - it just runs from wherever you untar it (I'll do a PKGBUILD later, of course). However, there is a problem with two of the deps. The python bindings for both musicbrainz and tunepimp are required, and are provided in the same tarballs as the libs themselves. However, I wasn't able to build it all in one PKGBUILD, because setup.py for the bindings looks for the lib in /usr/lib, which of course hasn't been installed yet. My kludge to get it going was to build the libs, install, run makepkg again to build the libs + bindings, and finally reinstall. Any python gurus out there know if I can point setup.py at $startdir/pkg/usr/lib instead? Here are the PKGBUILDs I'm using - the official ones, basically, with added python:

<edit>This package structure is now called Plan A, and I've removed the PKGBUILDs, as they are superceded by the working Plan A ones below.</edit>

Offline

#5 2006-03-04 10:00:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

Until a better idea comes along, I'm doing separate packages for the python stuff. <edit>This is now known as Plan B</edit>. Ignore those PKGBUILDs above <edit> since removed</edit> - here's everything you need.

If you don't already have them, get wxpython, musicbrainz and tunepimp from [extra], and build python-ctypes from the AUR. Then build the following:

python-musicbrainz

# Contributor: Tom Killian <tomk@runbox.com>

pkgname=python-musicbrainz
pkgver=2.1.2
pkgrel=1
pkgdesc="python bindings for the MusicBrainz client library"
depends=('musicbrainz' 'python-ctypes')
source=(http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-$pkgver.tar.gz)
md5sums=('88d35af903665fecbdee77eb6d5e6cdd')
url="http://www.musicbrainz.org/index.html"
license="LGPL"

build() {
  cd $startdir/src/libmusicbrainz-$pkgver/python
  python setup.py install --root=$startdir/pkg
}

python-tunepimp

# Contributor: Tom Killian <tomk@runbox.com>

pkgname=python-tunepimp
pkgver=0.4.2
pkgrel=1
pkgdesc="Python bindings for the TunePimp library."
depends=('tunepimp' 'python')
source=(http://ftp.musicbrainz.org/pub/musicbrainz/libtunepimp-$pkgver.tar.gz)
md5sums=('10b9e4a2f1930aed78ef7ddaebbe0fde')
url="http://www.musicbrainz.org/products/tunepimp/"
license="GPL"

build() {
  cd $startdir/src/libtunepimp-$pkgver/python
  python setup.py build
  python setup.py install --root=$startdir/pkg
}

picard

# Contributor: Tom Killian <tomk@runbox.com>

pkgname=picard
pkgver=0.6.0
pkgrel=1
pkgdesc="Next generation album-oriented MusicBrainz tagger"
depends=('wxpython' 'python-musicbrainz' 'python-tunepimp')
source=(https://helixcommunity.org/download.php/1791/$pkgname-$pkgver.tar.gz)
md5sums=('82c2da853ba4c5a0ab8e1baf3fb494eb')
url="https://musicbrainz.helixcommunity.org/"
license=('GPL' 'custom')

build() {
  cd $startdir/src
  
  mkdir -p $startdir/pkg/usr/{bin,share/picard}
  cp -r $pkgname-$pkgver/* $startdir/pkg/usr/share/picard
  echo "#!/bin/sh" >> $startdir/pkg/usr/bin/picard
  echo "/usr/share/picard/tagger.py" >> $startdir/pkg/usr/bin/picard
  chmod 755 $startdir/pkg/usr/bin/picard
  install -D $pkgname-$pkgver/COPYING $startdir/pkg/usr/share/licenses/picard/COPYING
}

It's still beta, and IMO it shows - not ready for primetime just yet. Then again, I've never used any other tagging apps, so I'm not the best judge. Feedback from people who actually use this kind of stuff would be appreciated.



P.S. Check out the button on the Options dialog - picard, groan.....  roll

Offline

#6 2006-03-05 21:20:04

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

Right - I've now sorted out Plan A i.e. python-enabled musicbrainz and tunepimp packages. The best way to do this, of course, is to apply the necessary changes to the official packages, and I've submitted a feature request (#4111). While we're waiting, the following is a bit tidier than Plan B.

Get wxpython and python-ctypes, as above. Build the following versions of musicbrainz, tunepimp, and picard:

musicbrainz

# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer : Sarah Hay <sarah@archlinux.org>

pkgname=musicbrainz
pkgver=2.1.2
pkgrel=1
pkgdesc="MusicBrainz is the second generation incarnation of the CD Index"
depends=('gcc' 'expat' ' python-ctypes')
source=(http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-$pkgver.tar.gz)
md5sums=('88d35af903665fecbdee77eb6d5e6cdd')
url="http://www.musicbrainz.org/index.html"

build() {
  cd $startdir/src/lib$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  
  # Build python bindings
  cd python
  # Change library path to package root
  sed -i "s|/usr/local/lib|$startdir/pkg/usr/lib|" musicbrainz.py
  python setup.py install --root=$startdir/pkg
  
  find $startdir/pkg -name '*.la' -exec rm {} ;
}

tunepimp

# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=tunepimp
pkgver=0.4.2
pkgrel=2
pkgdesc="The TunePimp library (also referred to as libtunepimp) is a development library geared towards developers who wish to create MusicBrainz enabled tagging applications."
depends=('musicbrainz' 'zlib' 'libmad' 'flac' 'libvorbis' 'python')
replaces=('trm')
source=(http://ftp.musicbrainz.org/pub/musicbrainz/lib$pkgname-$pkgver.tar.gz)
url="http://www.musicbrainz.org/products/tunepimp/"

build() {
  cd $startdir/src/lib$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  mkdir -p $startdir/pkg/usr/lib/pkgconfig
  make prefix=$startdir/pkg/usr install

  # Build python bindings
  cd python
  # Change library path to package root
  sed -i "s|/usr/local/lib|$startdir/pkg/usr/lib|" tunepimp/tunepimp.py
  python setup.py build
  python setup.py install --root=$startdir/pkg
      
  # libtoolslay
  find $startdir/pkg -name '*.la' -exec rm {} ;
}
md5sums=('10b9e4a2f1930aed78ef7ddaebbe0fde')

picard - Note the dependency changes compared to the version above.

# Contributor: Tom Killian <tomk@runbox.com>

pkgname=picard
pkgver=0.6.0
pkgrel=1
pkgdesc="Next generation album-oriented MusicBrainz tagger"
depends=('wxpython' 'musicbrainz>=2.1.2-1' 'tunepimp>=0.4.2-2')
source=(https://helixcommunity.org/download.php/1791/$pkgname-$pkgver.tar.gz)
md5sums=('82c2da853ba4c5a0ab8e1baf3fb494eb')
url="https://musicbrainz.helixcommunity.org/"
license=('GPL' 'custom')

build() {
  cd $startdir/src
 
  mkdir -p $startdir/pkg/usr/{bin,share/picard}
  cp -r $pkgname-$pkgver/* $startdir/pkg/usr/share/picard
  echo "#!/bin/sh" >> $startdir/pkg/usr/bin/picard
  echo "/usr/share/picard/tagger.py" >> $startdir/pkg/usr/bin/picard
  chmod 755 $startdir/pkg/usr/bin/picard
  install -D $pkgname-$pkgver/COPYING $startdir/pkg/usr/share/licenses/picard/COPYING
}

And that's it. For now, I'm going to put the Plan B versions in the AUR, but if/when the feature request is actioned, I'll change to Plan A.

Offline

#7 2006-03-06 02:25:24

johntramp
Member
Registered: 2006-03-02
Posts: 21

Re: MusicBrainz Picard Tagger?

tomk,  thanks a lot for your contribution here smile  greatly appreciated!

Last edited by johntramp (2012-05-22 02:08:39)

Offline

#8 2006-03-06 03:02:16

johntramp
Member
Registered: 2006-03-02
Posts: 21

Re: MusicBrainz Picard Tagger?

big_smile and it works!   cheers

Offline

#9 2006-03-06 08:27:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

My pleasure, johntramp, and glad it's working for you. Did you go for Plan A or Plan B? smile

Offline

#10 2006-03-06 11:20:15

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: MusicBrainz Picard Tagger?

Any screenshots guys? :oops:

Offline

#11 2006-03-06 12:17:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

This  is the screenie from helixcommunity.org - I'll post some of my own later.

Offline

#12 2006-03-06 15:01:33

murkus
Member
From: Europe/Helsinki
Registered: 2004-03-19
Posts: 254

Re: MusicBrainz Picard Tagger?

Thanks!

I got it to work using method A. :-D

.murkus

Offline

#13 2006-03-18 09:39:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

FYI Picard users - the python bindings have now been added to the official tunepimp package. If you used plan A above, upgrade tunepimp in the usual way. If you used plan B, remove python-tunepimp first, as follows:

pacman -Rd python-tunepimp

Then install the new tunepimp package.

I've updated the AUR packages to reflect this.

Offline

#14 2006-04-07 19:38:57

augustob
Member
From: Florianópolis, Brazil
Registered: 2006-03-17
Posts: 135

Re: MusicBrainz Picard Tagger?

To whom it may interest (I think many people in this thread big_smile), I made PKGBUILDs for Picard 0.7.0 Beta 2 (the one with Audio Fingerprinting) and its dependencies. I just need a little extra help and maybe some interaction with you, tomk, to maybe upload them to AUR.

The PKGBUILDs and some questions about making packages for Arch are in this thread:

http://bbs.archlinux.org/viewtopic.php?t=20429

(Sorry for ressurecting this thread, I hope it's OK..)

Offline

#15 2006-04-07 21:01:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

No problem with the resurrection, augustob, but I'm going to answer you in the other thread, because that's where your questions are. smile

Offline

#16 2006-04-08 02:54:28

augustob
Member
From: Florianópolis, Brazil
Registered: 2006-03-17
Posts: 135

Re: MusicBrainz Picard Tagger?

Offline

#17 2006-04-19 17:38:32

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: MusicBrainz Picard Tagger?

I had some problems when compiling python-ctypes. makepkg didn't find the patch-file to compile ctypes with gcc 4.0.

I found this page http://oubiwann.blogspot.com/2006/01/ct … cc-40.html which helped me to do the necessary changes in the source code.

Offline

#18 2006-04-19 19:38:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: MusicBrainz Picard Tagger?

ctypes is in the community repo now, thanks to willysilly, so you can just install it with pacman.

Offline

Board footer

Powered by FluxBB