blob: 748ed4d23981666452f5abeaa814a380fa48eb31 (
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
42
43
|
# Maintainer: Hari Chalise <harilvfs@chalisehari.com.np>
# https://github.com/harilvfs
# Co-Maintainer: Aethar <elliott.ashby88@gmail.com>
pkgname=yt-x-git
_pkgname=yt-x
pkgver=v0.4.5.r2.0a11222
pkgrel=1
pkgdesc="Browse youtube from your terminal"
arch=(any)
url="https://github.com/Benexl/$_pkgname"
license=('MIT')
options=(!strip)
makedepends=('git')
depends=(
'jq'
'curl'
'yt-dlp'
'fzf'
'mpv'
'ffmpeg')
optdepends=(
'gum'
'chafa'
'icat'
'imgcat')
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')
provides=("$_pkgname")
conflicts=("$_pkgname")
pkgver() {
cd "$pkgname" || exit
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${srcdir}" || exit
cd "${pkgname}" || exit
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}
|