summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70a5b9102ac9914eec1ec83df51802b635a9a881 (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
pkgname=rdis-git
pkgrel=1
pkgver=20200602
pkgdesc="A graphic binary analysis tool. Check rdis-lua for some scripts that improve its functionality. "
arch=(x86_64)
url="https://github.com/endeav0r/rdis"
license=('GPL3')
depends=('gtk3' 'luajit' 'jansson' 'udis86')
makedepends=('git')
source=("git+https://github.com/endeav0r/rdis.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/rdis"
  git log -1 --format="%cd" --date=short | sed 's|-||g'
}

prepare() {
  cd "$srcdir/rdis"
  sed -i 's,/usr/bin,$(DESTDIR)&,g' Makefile
  find . -name "Makefile" -exec sed -i 's/-Werror//g' '{}' \;
}

build() {
  cd "$srcdir/rdis"
  make
}

package() {
  cd "$srcdir/rdis"
  install -dm0755 "${pkgdir}"/usr/bin  # badly written Makefile!
  make DESTDIR="${pkgdir}" install
}