summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03898133543821a5ece8e98e8a3c0dac2f933b06 (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
# Maintainer: Daniel Maslowski <info@orangecms.org>

_pyname=uefi_r2
pkgname=uefi_r2-git
pkgver=r50.9bb55ba
pkgrel=1
pkgdesc="Core library for PSlab desktop"
arch=('any')
url="https://github.com/binarly-io/${_pyname}"
license=('GPL3')
depends=(
  'python'
  'python-r2pipe'
  'radare2'
)
makedepends=('git')
provides=("$_pyname")
conflicts=(uefi_r2)
options=(!emptydirs)
source=(git://github.com/binarly-io/${_pyname}.git)
sha512sums=('SKIP')

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

package() {
  cd "$srcdir/${_pyname}"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm 755 uefi_r2_analyzer.py "$pkgdir/usr/bin/uefi_r2_analyzer"
}

# vim:set ts=2 sw=2 et: