summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5499f7b4e0e1dc85d482a05409b30823803ee150 (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
# Maintainer: Kodi <kodicraft4@gmail.com>
pkgname=hentai.js
pkgver=2.3.6
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=("SKIP")
# validpgpkeys=()

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

build() {
  cd "$pkgname-$pkgver"
  echo $(pwd)
  npm run make-linux
}

package() {
  echo "idk what to put here"
  mkdir /usr/bin/hentaijs
  cd out/hentaijs-linux-x64
  mv * /usr/bin/hentaijs
  ln -s /usr/bin/hentaijs/hentaijs /usr/bin/hentai.js
}