blob: 985fa10afe9cf2438775cd018c907d9406cb544b (
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: Kodi <kodicraft4@gmail.com>
pkgname=hentai.js
pkgver=3.3.0
pkgrel=1
pkgdesc="rule34.xxx wrapper written in electron"
arch=('x86_64')
url="https://github.com/KodiCraft/hentai.js"
license=('MIT')
depends=("nodejs" "npm")
makedepends=()
checkdepends=()
optdepends=("electron")
# provides=()
# conflicts=()
# replaces=()
# backup=()
# options=()
# install=
# changelog=
source=("$url/archive/refs/tags/v${pkgver}.tar.gz")
# noextract=()
md5sums=('2e0b5f5f43f9201bd9de9689c35424ad')
# validpgpkeys=()
prepare() {
cd "$pkgname-$pkgver"
npm install --cache "${srcdir}/npm-cache"
}
build() {
cd "$pkgname-$pkgver"
}
package() {
cd "$pkgname-$pkgver"
npm run package
mkdir -p "$pkgdir/usr/local/lib/hentaijs"
cp -rL "out/hentaijs-linux-x64/" "$pkgdir/usr/local/lib/hentaijs/"
touch "$pkgdir/usr/local/lib/hentaijs/hentaijs-linux-x64/.noupdates"
chmod 755 -R "$pkgdir/usr/local/lib/hentaijs/"
mkdir -p "$pkgdir/usr/local/bin/"
ln -sr "$pkgdir/usr/local/lib/hentaijs/hentaijs-linux-x64/hentaijs" "$pkgdir/usr/local/bin/hentai.js"
}
|