# Maintainer: exponential # Contributor: Mark (AUR) pkgname="ani-cli" pkgver=4.9 pkgrel=0 pkgdesc="A cli to browse and watch anime." arch=('all') url="https://github.com/pystardust/ani-cli" license=('GPL3') depends=('grep' 'sed' 'curl' 'mpv' 'aria2' 'ffmpeg' 'fzf') optdepends=('vlc: An alternative video player' 'rofi: Lightweight menu for X' 'yt-dlp: Alternative m3u8 downloader' 'ani-skip: Automatically skip anime opening (mpv only)') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pystardust/ani-cli/archive/refs/tags/v${pkgver}.tar.gz") b2sums=('978ab41f40b6ddf9d2e2ac77e56de57e1246fbc20af54e950ea2ff0ddee6d02c099bf02804f888154a970ad13e421e392ad74d830f95d00e8806f4ba009196f2') prepare() { echo "Disclaimer: This project is to be used at the user's own risk, based on their government and laws." } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 "ani-cli" "$pkgdir/usr/bin/ani-cli" #doc install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme" install -Dm644 "disclaimer.md" "$pkgdir/usr/share/doc/$pkgname/disclaimer" install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1" ln -s /usr/share/common-licenses/GPL-3 "$pkgdir/usr/share/doc/$pkgname/" gzip "$pkgdir/usr/share/man/man1/$pkgname.1" }