summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 317bddb11ceed0e2c3a44b7d3d056006b6a83e58 (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
pkgname=youtuibe
pkgver=0.2.0
pkgrel=1
pkgdesc='A resilient, approachable Ratatui frontend for yt-dlp'
arch=('x86_64' 'aarch64')
url='https://github.com/sambuaneesh/youTUIbe'
license=('MIT')
depends=('yt-dlp' 'ffmpeg')
makedepends=('cargo' 'rust')
optdepends=('mpv: complete audio and video playback'
            'viu: full-terminal true-color artwork preview'
            'ffmpegthumbnailer: desktop thumbnails for source-quality Opus files'
            'aria2: optional accelerated downloading'
            'libnotify: desktop notifications'
            'xorg-xrandr: active display detection outside Hyprland')
provides=('youtuibe')
conflicts=('youtuibe-bin')
_archive="youTUIbe-${pkgver}"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sambuaneesh/youTUIbe/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ebca3493581ad499a24a9bbf8f5702ce043c5e0982bba513c43b7e2145323da4')

build() {
  cd "${_archive}"
  cargo build --frozen --release
}

check() {
  cd "${_archive}"
  cargo test --frozen
}

package() {
  cd "${_archive}"
  install -Dm755 target/release/youtuibe "${pkgdir}/usr/bin/youtuibe"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
  install -Dm644 packaging/youtuibe.desktop "${pkgdir}/usr/share/applications/youtuibe.desktop"
  install -Dm644 packaging/youtuibe.1 "${pkgdir}/usr/share/man/man1/youtuibe.1"
}