summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c9c4c0036a24238f515c565a955cfdfa93974c4 (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
# Maintainer: Kodi <kodicraft4@gmail.com>
pkgname=hentai.js
pkgver=2.3.6
pkgrel=2

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=("SKIP")
# validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
  npm install	--cache "${srcdir}/npm-cache"
}

build() {
  cd "$pkgname-$pkgver"
   
}

package() {
  cd "$pkgname-$pkgver"
  npm run make-linux
  
  mkdir -p "$pkgdir/usr/local/lib/hentaijs"
  cp -r "out/hentaijs-linux-x64/" "$pkgdir/usr/local/lib/hentaijs/"
  chmod 755 -R "$pkgdir/usr/local/lib/hentaijs/" 
  mkdir -p "$pkgdir/usr/local/bin/"
  ln -s "$pkgdir/usr/local/lib/hentaijs/hentaijs-linux-x64/hentaijs" "$pkgdir/usr/local/bin/hentai.js"
}