blob: 38dedbccb73150544d781019622e9c17e375df5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: XZS <d dot f dot fischer at web dot de>
pkgname=python-xmms2-mlib-adapter-git
pkgver=r0
pkgrel=1
pkgdesc="Export and import xmms2 playlists and song statistics to plaintext."
arch=('i686' 'x86_64')
url="https://github.com/dffischer/xmms2-mlib-adapter"
license=('GPL3')
depends=('python' 'python-progressbar' 'xmms2<0.9DrParnassus')
makedepends=('waf' 'python-argparse-manpager')
makedepends+=('git')
source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}")
md5sums+=('SKIP')
provides+=("$_gitname=$pkgver")
conflicts+=("$_gitname")
pkgver() {
cd ${_gitname:-$pkgname}
git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1'
[ ${PIPESTATUS[0]} -ne 0 ] && \
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_gitname"
waf --prefix=/usr configure build
}
package() {
cd "$_gitname"
waf install --destdir="$pkgdir/"
}
|