blob: c1e21f8d264cbfb872041de7a09edd61e2d37f3c (
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: orhun <orhunparmaksiz@gmail.com>
# https://github.com/orhun/pkgbuilds
pkgname=slicer
pkgdesc="A tool to automate the boring process of APK recon"
pkgver=1.4
pkgrel=1
arch=('x86_64')
url="https://github.com/mzfr/slicer"
license=('GPL3')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('8b4c74685f841ba588ff09d292a9fedda296aad37037c7ba5982cb2d4adabac7b36beae66dc880cd5654d474034961544f61da5fd87857ee55e8809de1f46a6a')
build() {
cd "$pkgname-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o "$pkgname" .
}
package() {
cd "$pkgname-$pkgver"
install -Dm 755 "$pkgname" -t "$pkgdir/usr/bin"
install -Dm 644 readme.md -t "$pkgdir/usr/share/doc/$pkgname"
}
|