summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7108d61a3efc1002ff561d3c45df621740253782 (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
# Maintainer: theguy147 <yakamoz147 (at) protonmail (dot) com>

pkgname=apkleaks-git
pkgver=v1.0.2.r103.g401e09c
pkgrel=1
pkgdesc="scanning apk file for URIs, endpoints & secrets. (git version)"
url="https://github.com/dwisiswant0/apkleaks"
depends=('python' 'python-pyaxmlparser')
makedepends=('python-setuptools')
license=('Apache2')
conflicts=('apkleaks')
arch=('any')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname}"
    ( set -o pipefail
        git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
    cd "${pkgname}"
    python setup.py build
}

package() {
    cd "${pkgname}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}