summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d908c33f88aa25de123101c7560b1fe70a3753b5 (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: Weslen Nascimento <weslenng@outlook.com>

pkgname=sspl
pkgver=1.0.1
pkgrel=1
pkgdesc="Bypass SSL Pinning on Android"
arch=("x86_64")
url="https://github.com/weslenng/sspl"
license=("MIT")
groups=()
depends=("android-apktool" "jdk8-openjdk" "java-runtime-common")
makedepends=("git" "go")
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=()
noextract=()
md5sums=() # autofill using updpkgsums

build() {
  # clone
  git clone $url

  # build
  cd sspl
  go build
}

package() {
  cd sspl

  # dirs
  mkdir -p $HOME/.android
  mkdir -p $HOME/.sspl

  # network security config
  cp static/network_security_config.xml $HOME/.sspl/

  # install
  install -Dm755 $pkgname "$pkgdir"/usr/local/bin/$pkgname
}