forked from pystardust/ani-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD-git
More file actions
39 lines (33 loc) · 1.19 KB
/
PKGBUILD-git
File metadata and controls
39 lines (33 loc) · 1.19 KB
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
# Maintainer: dxmoc <dxmoc@users.noreply.github.com>
pkgname=aniworld-cli-git
pkgver=r1.1.0
pkgrel=1
pkgdesc='CLI tool to browse and stream anime from aniworld.to (development version)'
arch=('any')
url='https://github.com/dxmoc/aniworld-cli'
license=('GPL-3.0-or-later')
depends=('bash' 'curl' 'sed' 'grep' 'fzf' 'nodejs')
optdepends=(
'mpv: video playback (recommended)'
'vlc: alternative video player'
'yt-dlp: enhanced video extraction'
'jq: better JSON parsing'
)
makedepends=('git')
provides=('aniworld-cli')
conflicts=('aniworld-cli')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${pkgname}"
sed -i 's|LIB_DIR="\$SCRIPT_DIR/lib"|LIB_DIR="/usr/share/aniworld-cli/lib"|' aniworld-cli
install -Dm755 aniworld-cli "${pkgdir}/usr/bin/aniworld-cli"
install -dm755 "${pkgdir}/usr/share/aniworld-cli/lib"
install -Dm644 lib/*.sh "${pkgdir}/usr/share/aniworld-cli/lib/"
install -Dm755 lib/*.js "${pkgdir}/usr/share/aniworld-cli/lib/"
install -Dm644 README.md "${pkgdir}/usr/share/doc/aniworld-cli/README.md"
}