summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1a5dba0c3424807403f5fa4efc43727958b5cd9 (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
# Maintainer: steelt <steeltitanium1 at gmail dot com>

pkgname=rvx-builder
pkgver=3.16.1
pkgrel=1
pkgdesc="A NodeJS ReVanced Extended Builder"
arch=("x86_64")
url="https://github.com/inotia00/rvx-builder"
license=("GPL-3.0")
depends=("nodejs" "java-environment>=17")
makedepends=("npm")
optdepends=(
  "android-tools: required only for rooted phones"
  "electron: for opening rvx-builder in a seperate window"
)
source=(
  "$pkgname-$pkgver.tar.gz::https://github.com/inotia00/rvx-builder/archive/refs/tags/v$pkgver.tar.gz"
  "rvx-builder.sh"
  "rvx-builder.desktop"
  "rvx-builder.png"
)
sha256sums=('ef117be2e3f9a083500fa2d5a2d4f1baa5e5f119a4de03f97da836375b5cac43'
            '3fdb61a644d1b8f9506a932330319b34ed023fe9e3c5712df340cc6ed1e2fc12'
            '8d6e3edae77e734e6539da775a77f52bac3863b870baff2f1631796d304b941e'
            '2b4943f5ada85a5dfb73d8e28d3d14e0f7f4eaa4f4072feca02e3a9b54500406')
build() {
  cd $pkgname-$pkgver
  npm i
}

package() {
  rm -rf "$pkgdir/opt/$pkgname"
  mkdir -p "$pkgdir/opt"
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/applications"
  mkdir -p "$pkgdir/usr/share/icons/hicolor/192x192/apps"
  cp -r "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/$pkgname"
  install -Dm755 "$srcdir/rvx-builder.sh" "$pkgdir/usr/bin/rvx-builder"
  install -Dm644 "$srcdir/rvx-builder.desktop" "$pkgdir/usr/share/applications"
  install -Dm644 "$srcdir/rvx-builder.png" "$pkgdir/usr/share/icons/hicolor/192x192/apps"
}