Skip to content

Instantly share code, notes, and snippets.

@JonnyJD
Created April 5, 2013 17:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonnyJD/5321159 to your computer and use it in GitHub Desktop.
Save JonnyJD/5321159 to your computer and use it in GitHub Desktop.
python2-discid-local PKGBUILD to use a local git repository as "package"
# Maintainer: Johannes Dewender arch at JonnyJD dot net
pkgname=python2-discid-local
_pkgname=discid
_python=python2
pkgver=0.2.1
pkgrel=1
pkgdesc="Python binding of Libdiscid"
arch=('any')
url="https://python-discid.readthedocs.org/"
license=('LGPL3')
depends=('python2' 'libdiscid')
makedepends=()
provides=('python2-discid')
conflicts=('python2-discid')
options=(!emptydirs)
source=()
_localrepo=/home/jonnyjd/git/_musicbrainz/python-discid
check() {
cd $_localrepo
$_python setup.py test
}
package() {
mkdir -p $pkgdir/usr/lib/python2.7/site-packages/
ln -s $_localrepo/discid.py $pkgdir/usr/lib/python2.7/site-packages/
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment