diff options
author | Johannes Löthberg <demizide@gmail.com> | 2013-06-14 22:15:29 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-01 16:03:37 +0200 |
commit | c83702f872bbada876189916b03702dc3073248d (patch) | |
tree | 898d6ebbe13277dc5c3fc338b7c5573c01326e17 /PKGBUILD | |
parent | 59f6533e9ec70c8bee6fcdd94f53deb045bd43b3 (diff) | |
download | pkgbuilds-c83702f872bbada876189916b03702dc3073248d.tar.xz |
beets-git: moved PKGVER(), added --optimize=1 to install and updated PKGREL
Moved PKGVER() to the top of the function list
Added --optimize=1 to install line to generate .pyo's for pacman tracking
Updated PKGREL to 2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -3,15 +3,15 @@ pkgname=beets-git pkgver=20130614 -pkgrel=1 +pkgrel=2 pkgdesc="Flexible music library manager and tagger - git version" arch=('any') url="http://beets.radbox.org/" license=('MIT') -makedepends=('git') depends=('python2-munkres' 'mutagen' 'python2-distribute' 'python2-unidecode' 'python2-musicbrainzngs' 'python2-yaml') +makedepends=('git') optdepends=('python2-pyacoustid: acoustic fingerprinting' 'python2-flask: web interface' 'gstreamer0.10-python: BPD audio player plugin' @@ -21,6 +21,11 @@ conflicts=('beets') source=('git://github.com/sampsyo/beets.git') md5sums=('SKIP') +pkgver() { + cd ${srcdir}/beets + echo $(date +%Y%m%d).$(git describe --always | sed 's|-|.|g') +} + build() { cd ${srcdir}/beets python2 setup.py build @@ -28,12 +33,7 @@ build() { package() { cd ${srcdir}/beets - python2 setup.py install --root=${pkgdir} + python2 setup.py install --root=${pkgdir} --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } - -pkgver() { - cd ${srcdir}/beets - echo $(date +%Y%m%d).$(git describe --always | sed 's|-|.|g') -} |