summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6544bc97c346e964ec07077f7b6011b61e7921a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Viktor Nagy <viktor.nagy1995@gmail.com>
pkgname='subtube-git'
pkgver=1
pkgrel=2
pkgdesc="youtube viewer made of mpv/youtube-dl and sxiv"
arch=('x86_64')
url="https://github.com/nagy135/subtube"
license=('MIT')
depends=('sxiv' 'mpv' 'youtube-dl' 'xob')
optdepends=('dunst: notification daemon')
makedepends=('git')
provides=("${pkgname%-git}")
source=('subtube-git::git://github.com/nagy135/subtube.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/" install
}