blob: 04d1cf09cd46ab6d7c35d34a28164c3fdb34b8fc (
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
34
35
36
37
38
39
40
41
|
# Maintainer: Euro20179 <Euro20179@protonmail.com>
pkgname=ytfzf-git
pkgver=r1282.a257688
pkgrel=2
pkgdesc="A posix script to find and watch youtube videos from the terminal. (Without API)"
arch=('any')
url="https://github.com/pystardust/ytfzf"
license=('GPL')
depends=('jq' 'mpv' 'curl')
makedepends=('git')
optdepends=(
'dmenu: use dmenu for search prompts and results'
'rofi: use rofi for search prompts and results'
'fzf: use fzf for results'
'ueberzug: thumbnails image preview'
'yt-dlp: for downloading'
)
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 ytfzf "${pkgdir}/usr/bin/ytfzf"
install -Dm644 LICENSE "${pkgdir}/usr/share/doc/ytfzf/LICENSE"
cd docs
install -dm0755 "${pkgdir}/usr/share/doc/ytfzf"
install -Dm644 man/ytfzf.1 "${pkgdir}/usr/share/man/man1/ytfzf.1.gz"
install -Dm644 man/ytfzf.5 "${pkgdir}/usr/share/man/man5/ytfzf.5.gz"
install -Dm644 conf.sh "${pkgdir}/usr/share/doc/ytfzf"
}
|