You are not logged in.
Hey. Has anyone here managed to get the Picard tagger running on Arch?
http://wiki.musicbrainz.org/PicardTagger
https://musicbrainz.helixcommunity.org/
Offline
I tried to build it twice but didn't get it to work. It'd be super if someone could..
Offline
I never got it to build either. It'll be great when it finally... works.
Offline
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
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.....
Offline
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
tomk, thanks a lot for your contribution here greatly appreciated!
Last edited by johntramp (2012-05-22 02:08:39)
Offline
and it works! cheers
Offline
My pleasure, johntramp, and glad it's working for you. Did you go for Plan A or Plan B?
Offline
Any screenshots guys? :oops:
[My Blog] | [My Repo] | [My AUR Packages]
Offline
This is the screenie from helixcommunity.org - I'll post some of my own later.
Offline
Thanks!
I got it to work using method A. :-D
.murkus
Offline
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
To whom it may interest (I think many people in this thread ), 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
No problem with the resurrection, augustob, but I'm going to answer you in the other thread, because that's where your questions are.
Offline
Done and done, enjoy!
libofa:
http://aur.archlinux.org/packages.php?d … =1&ID=4139
python-musicbrainz2:
http://aur.archlinux.org/packages.php?d … =1&ID=4140
tunepimp-devel:
http://aur.archlinux.org/packages.php?d … =1&ID=4141
picard-devel:
http://aur.archlinux.org/packages.php?d … =1&ID=4142
Oh, and thanks again to tomk for the pointers 8)
Offline
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
ctypes is in the community repo now, thanks to willysilly, so you can just install it with pacman.
Offline