summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 196e7776bcd2bd66e36f457acea882085c2ff838 (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
50
51
52
53
54
55
56
57
# Maintainer: Aethar <elliott.ashby88@gmail.com>

_pkgname=fastanime
pkgname="${_pkgname}-git"
pkgver=2.8.4.r3.a79b59f
pkgrel=3
pkgdesc="FastAnime, anime site experience from the terminal."
arch=('x86_64')
url="https://github.com/Benex254/FastAnime"
license=('Unlicense')
makedepends=('python>=3.10' 'git' 'uv' 'python-installer')
depends=('python'
         'python-click'
         'python-fastapi'
         'python-inquirerpy'
         'libtorrent'
         'python-plyer'
         'python-pytest'
         'python-requests'
         'python-rich'
         'python-thefuzz'
         'yt-dlp'
         'python-dbus'
         'python-pypresence')
optdepends=('mpv: video player'
            'webtorrent-cli: nyaa torrents'
            'ffmpeg: download hls streams' 
            'rofi: alternative ui'
            'fzf: alternative ui'
            'chafa: terminal image viewer'
            'icat: kitty terminal image viewer'
            'bash: preview script language'
            'ani-skip-git: skip anime openings'
            'ffmpegthumbnailer: local previews'
            'syncplay: watch with friends'
            'feh: image viewer (for manga mode)')
provides=('fastanime')
conflicts=('fastanime')
source=("git+${url}.git")
install="${_pkgname}.install"

build() {
    cd "${srcdir}" || exit
    cd FastAnime || exit
    uv build
}

package() {
    cd "${srcdir}" || exit
    cd FastAnime || exit
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 completions/fastanime.bash "$pkgdir/usr/share/bash-completion/completions/fastanime"
    install -Dm644 completions/fastanime.zsh "$pkgdir/usr/share/zsh/site-functions/_fastanime"
    install -Dm644 completions/fastanime.fish "$pkgdir/usr/share/fish/vendor_completions.d/fastanime.fish"
}
sha256sums=('SKIP')