summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e371c996c7ee31e09ffa3249f12ddaed73de8d1 (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: Raziman Mahathir <raziman.mahathir@gmail.com>
pkgname='gomu'
pkgver=v1.5.5
pkgrel=2
pkgdesc="Terminal User Interface (TUI) Music Player"
arch=('x86_64')
url="https://github.com/issadarkthing/gomu"
license=('GPL')
groups=()
depends=('alsa-lib' 'youtube-dl' 'noto-fonts-emoji')
makedepends=('go' 'git')
optdepends=('fzf')
conflicts=('gomu-git' 'gomu-bin')
source=("git://github.com/issadarkthing/gomu.git")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$pkgname"
	make build
}

package() {
	cd "$pkgname"
	install -Dm755 ./bin/gomu "$pkgdir/usr/bin/gomu"
}