blob: b9d8fcfdf9c8e2322648f36171f0cd6741ae2374 (
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
|
# Maintainer: Gregoire Lodi <gregoire.lodi@gmail.com>
pkgname=elf-strings
pkgver=0.9.1
pkgrel=1
pkgdesc="elf-strings will programmatically read an ELF binary's string sections within a given binary. This is meant to be much like the strings UNIX utility, however is purpose built for ELF binaries."
arch=("x86_64")
url="https://github.com/LloydLabs/elf-strings"
license=("GPL")
makedepends=("go")
source=("$pkgname"::"git+${url}.git")
noextract=()
md5sums=("SKIP")
build() {
cd "$pkgname"
GOPATH="$PWD" GOBIN="$PWD" go get
GOPATH="$PWD" GOBIN="$PWD" go build
}
package() {
cd "${srcdir}/${pkgname}"
echo "installing ${pkgname} to ${pkgdir}"
install -Dm 755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
|