Created
March 28, 2014 13:52
-
-
Save JonnyJD/9833276 to your computer and use it in GitHub Desktop.
Arch Linux PKGBUILD for picard-local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 87401 2013-03-31 13:44:28Z bisson $ | |
# Maintainer: Gaetan Bisson <[email protected]> | |
# Contributor: Mateusz Herych <[email protected]> | |
# Contributor: sysrq | |
pkgname=picard-local | |
_pkgname=picard | |
pkgver=1.2 | |
pkgrel=1 | |
pkgdesc='Official MusicBrainz tagger' | |
url='http://musicbrainz.org/doc/MusicBrainz_Picard' | |
license=('GPL') | |
arch=('i686' 'x86_64') | |
depends=('python2-pyqt' 'mutagen') | |
optdepends=('libdiscid: CD lookup' | |
'chromaprint: fingerprinting') | |
conflicts=('picard') | |
provides=('picard=1.2') | |
source=("http://ftp.musicbrainz.org/pub/musicbrainz/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") | |
sha1sums=('323e22adef321a8fb80d617eb86a880f7d546fca') | |
install=install | |
_localrepo=/home/jonnyjd/git/_musicbrainz/picard | |
build() { | |
cd "${srcdir}/picard-${pkgver}" | |
python2 setup.py config | |
} | |
package() { | |
cd "${srcdir}/picard-${pkgver}" | |
python2 setup.py install --root="${pkgdir}" | |
for subdir in {browser,formats,ui}; do | |
rm -r "$pkgdir/usr/lib/python2.7/site-packages/picard/$subdir" | |
done | |
rm "$pkgdir/usr/lib/python2.7/site-packages/picard/"*.py* | |
rm "$pkgdir/usr/lib/python2.7/site-packages/picard/plugins/__init__.py"* | |
for subdir in {browser,formats,ui}; do | |
ln -s "$_localrepo/picard/$subdir" \ | |
"$pkgdir/usr/lib/python2.7/site-packages/picard/" | |
done | |
rm "$pkgdir/usr/lib/python2.7/site-packages/picard/util/"*.py* | |
ln -s "$_localrepo/picard/"*.py \ | |
"$pkgdir/usr/lib/python2.7/site-packages/picard/" | |
ln -s "$_localrepo/picard/plugins/"*.py \ | |
"$pkgdir/usr/lib/python2.7/site-packages/picard/plugins/" | |
ln -s "$_localrepo/picard/util/"*.py \ | |
"$pkgdir/usr/lib/python2.7/site-packages/picard/util/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment