summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dewender2015-06-20 01:29:32 +0200
committerJohannes Dewender2015-06-20 01:29:32 +0200
commit8886966be716c7204834a0ff36e3de9d593ce319 (patch)
tree552ee3ad68e64a09007c50bb927cfa9df5b1acc3
parent2d7d791251c7b07cc4e2d45f4a434396f69effe7 (diff)
downloadaur-python-musicbrainzngs-git.tar.gz
install license file
-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: