summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68e2de02166e3315d00c662bae410da25b8e1bfe (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
# Maintainer: Frederik "Freso" S. Olesen <archlinux@freso.dk>
pkgname=vlc-listenbrainz-git
_pkgname="${pkgname%-git}"
pkgver=r11.1a8886e
pkgrel=1
pkgdesc='ListenBrainz plugin for VLC'
arch=('i686' 'x86_64' 'x86_64_v3')
url='https://github.com/amCap1712/vlc-listenbrainz-plugin'
license=('GPL-2.0-or-later')
depends=('vlc')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
	cd "${srcdir}/vlc-listenbrainz-plugin"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/vlc-listenbrainz-plugin"
	make
}

package() {
	cd "${srcdir}/vlc-listenbrainz-plugin"
	make DESTDIR="$pkgdir/" install
}