summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 177794996c8b69a4d6b7f24ef14b0a6bcd35cf80 (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
# Maintainer: Westofer Raymond <westoferraymond@gmail.com>

pkgname=ytfzf-git
pkgver=r50.6865243
pkgrel=1
pkgdesc="A posix script to find and watch youtube videos from the terminal. (With out API)"
arch=('any')
url="https://github.com/pystardust/ytfzf"
license=('GPL')
depends=('jq' 'mpv' 'youtube-dl' 'fzf')
makedepends=('git') 
provides=('ytfzf')
conflicts=("ytfzf")
install=
source=('ytfzf::git+https://github.com/pystardust/ytfzf.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm755  -t "${pkgdir}/usr/bin" "${pkgname%-git}"
}