summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9133e8d110eabb7e541ad7f0b9195d224049de94 (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
# Maintainer: Phitherek_ <phitherek@gmail.com>
pkgname=smart-playerctl-git
pkgver=0.2.2.r0.f7d601e
pkgrel=2
pkgdesc="A smart wrapper for playerctl"
arch=(x86_64)
url="https://gitlab.com/Phitherek_/smart-playerctl"
license=('MIT')
depends=('playerctl' 'libnotify')
makedepends=('git' 'crystal' 'shards') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=('smart-playerctl-git')
conflicts=('smart-playerctl-git')
source=('git+https://gitlab.com/Phitherek_/smart-playerctl.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/smart-playerctl"
	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	cd "$srcdir/smart-playerctl"
}

build() {
	cd "$srcdir/smart-playerctl"
	./build.sh
}

package() {
	cd "$srcdir/smart-playerctl"
	PREFIX="$pkgdir/usr" ./install.sh
}