blob: d76f68c4e45abe7be9cc3d50e24821b5ae18409f (
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
|
# Maintainer: Euro20179 <Euro20179@protonmail.com>
pkgname=ytfzf-git
pkgver=r1439.2331f87
pkgrel=1
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' 'curl' 'grep' 'sed')
makedepends=('git')
optdepends=(
'dmenu: use dmenu for search prompts and results'
'rofi: use rofi for search prompts and results'
'fzf: use fzf for results'
'mpv: use mpv for video player'
'ueberzug: thumbnails image preview'
'yt-dlp: for downloading'
)
provides=('ytfzf')
conflicts=("ytfzf")
install=
source=('ytfzf::git+https://github.com/pystardust/ytfzf.git#branch=development')
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}"
sed -i 's_\${YTFZF\_SYSTEM\_ADDON\_DIR:=/usr/local/share/ytfzf/addons}_\${YTFZF\_SYSTEM\_ADDON\_DIR:=/usr/share/ytfzf/addons}_' ${pkgname%-git}
make PREFIX="${pkgdir}/usr" install doc addons
}
|