summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 97a99d398ef..000c803326a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
# Contributor: Adrian Sampson <adrian@radbox.org>
pkgname=('python-musicbrainzngs-git' 'python2-musicbrainzngs-git')
-_name=musicbrainzngs
+_pkgname=python-musicbrainzngs
pkgver=0.5_86.g98b6885
pkgrel=1
pkgdesc="bindings for the MusicBrainz NGS web service (WS/2)"
url="http://python-musicbrainzngs.readthedocs.org/"
-license="BSD"
+license=("BSD")
arch=('any')
makedepends=('git')
source=('git+https://github.com/alastair/python-musicbrainzngs.git')
@@ -27,16 +27,20 @@ package_python-musicbrainzngs-git() {
depends=("python")
provides=("python-musicbrainzngs=$pkgver")
conflicts=("python-musicbrainzngs")
- cd "$srcdir/python-musicbrainzngs"
+ cd "$srcdir/$_pkgname"
python setup.py install --root=$pkgdir
+ install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
+ install -m 755 {,"$pkgdir/usr/share/licenses/$pkgname/"}COPYING
}
package_python2-musicbrainzngs-git() {
depends=("python2")
provides=("python2-musicbrainzngs=$pkgver")
conflicts=("python2-musicbrainzngs")
- cd "$srcdir/python-musicbrainzngs"
+ cd "$srcdir/$_pkgname"
python2 setup.py install --root=$pkgdir
+ install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
+ install -m 755 {,"$pkgdir/usr/share/licenses/$pkgname/"}COPYING
}
# vim:set ts=2 sw=2 et: