blob: 3c25e1203fca59f9643a0a1aa7b5daa3f8a8849f (
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
33
34
35
36
37
|
# Maintainer: <teraflops, cprieto.ortiz@gmail.com>
pkgname=mympc
pkgver=1.0.0
pkgrel=1
pkgdesc="An mpc wrapper with music library zsh completion and advanced tagging features"
arch=('any')
url="https://gitlab.com/teraflops/mympc"
license=('MIT')
depends=('zsh' 'mpc' 'mpd' 'python-mpd2' 'bash')
makedepends=('git' 'gnupg')
provides=('mympc')
conflicts=('mympc')
source=(git+$url.git#tag=v${pkgver}?signed)
sha256sums=('SKIP')
install="$pkgname.install"
validpgpkeys=('463C26699946E6129B90A9E2CE7B6A8F1708ED21')
pkgver() {
cd "$srcdir/mympc"
local latest_tag
latest_tag=$(git describe --tags --abbrev=0)
echo "${latest_tag#v}"
}
package() {
cd "$srcdir/mympc"
install -Dm644 "usr/local/share/zsh/site-functions/_mympc" "$pkgdir/usr/local/share/zsh/site-functions/_mympc"
install -Dm755 "usr/local/bin/mympc" "$pkgdir/usr/local/bin/mympc"
install -Dm755 "usr/local/share/mympc/get_top_rated_tracks.py" "$pkgdir/usr/local/share/mympc/get_top_rated_tracks.py"
install -Dm755 "usr/local/share/mympc/add_mood_tag.py" "$pkgdir/usr/local/share/mympc/add_mood_tag.py"
install -Dm755 "usr/local/share/mympc/tags.sh" "$pkgdir/usr/local/share/mympc/tags.sh"
install -Dm644 "usr/local/share/mympc/tags.conf" "$pkgdir/usr/local/share/mympc/tags.conf"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|