summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7f89ff75ec28819a6d79fa6578117453972f3c1 (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
44
45
46
47
48
49
# Maintainer: Hari Chalise <harilvfs@chalisehari.com.np>
# https://github.com/harilvfs
pkgname=yt-x-git
_pkgname=yt-x
pkgver=v0.4.5.r1.g75028b6
pkgrel=1
pkgdesc="Browse youtube from your terminal"
arch=(any)
url="https://github.com/Benexl/$_pkgname"
license=('GPL')
options=(!strip)
depends=(
  'jq'
  'curl'
  'yt-dlp'
  'fzf'
  'mpv'
  'ffmpeg'
)
makedepends=(git)
optdepends=(
  'gum'
  'chafa'
  'icat'
  'imgcat'
)

source=("${pkgname}::git+https://github.com/Benexl/$_pkgname.git")
md5sums=('SKIP')

conflicts=($_pkgname)
provides=($_pkgname)

makedepends=('git')

pkgver() {
    cd "$pkgname"
    git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {

  install -Dm 755 ${srcdir}/${pkgname}/${_pkgname} -t ${pkgdir}/usr/bin/

  install -Dm 644 ${srcdir}/${pkgname}/LICENSE -t ${pkgdir}/usr/share/licenses/${_pkgname}/

  install -Dm 644 ${srcdir}/${pkgname}/README.md -t ${pkgdir}/usr/share/doc/${_pkgname}/

}