archlinux-pkgbuilds/PKGBUILD

37 lines
885 B
Text
Raw Normal View History

# Author: Axujen <axujen@gmail.com>
2021-02-28 07:18:50 +01:00
# Maintainer: ZaZam <zazaamm at gmail dot com>
_gitauthor=axujen
_gitname=mpdrandom
pkgname=mpdrandom-git
2021-02-28 07:18:50 +01:00
pkgver=1.1.2.r14.g0658b2d
2018-10-29 18:51:07 +01:00
pkgrel=1
pkgdesc="mpd albums randomizing script"
arch=('any')
url="https://github.com/$_gitauthor/$_gitname"
license=('unknown')
2021-02-28 07:18:50 +01:00
depends=('python' 'python-mpd2')
makedepends=('git')
provides=('mpdrandom')
2018-10-29 18:51:07 +01:00
source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom.service')
2021-02-28 07:18:50 +01:00
sha1sums=('SKIP' '155133e127d3d935d339cff2265a5f728a4ef0b1')
pkgver() {
cd "$srcdir/$_gitname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_gitname"
2021-02-28 07:18:50 +01:00
python setup.py build
}
package() {
cd "$srcdir/$_gitname"
2021-02-28 07:18:50 +01:00
python setup.py install --prefix="$pkgdir/usr"
install -Dm644 "$srcdir/mpdrandom.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service"
}
# vim:set ts=2 sw=2 et: