summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee6b7d1a7a3eec5a06bcb984df096f7a42674ccb (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
# Maintainer: JSH <jsh 6 7 8 9 at g>

_pkgname=hermes-dec
pkgname=${_pkgname}-git
pkgver=r61.7c9d958
pkgrel=1
pkgdesc="A tool for reverse engineering React Native bytecode files"
arch=('any')
url="https://github.com/P1sec/hermes-dec"
license=('AGPL3')
depends=('python')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/P1sec/hermes-dec.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/hermes-dec"
  python setup.py build
}

package() {
  cd "$srcdir/hermes-dec"
  python setup.py install --root="$pkgdir" --optimize=1
}