summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a54390f6e05d66f8a063a73b95b37bd70a7ee6d0 (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: Jonathan Eyolfson <jon@eyl.io>
pkgname=dynamorio-bin
pkgver=10.0.0
pkgrel=1
pkgdesc="A dynamic binary instrumentation framework"
url="http://dynamorio.org"
arch=('x86_64' 'i686')
license=('BSD')
depends=()
optdepends=()
makedepends=()
conflicts=()
replaces=()
backup=()
source=("https://github.com/DynamoRIO/dynamorio/releases/download/release_${pkgver}/DynamoRIO-Linux-${pkgver}.tar.gz")
sha256sums=('21eaa23570e12dfa5eab8443589481c1eaedfc73ce71647720d121d2e3ba74d6')

package() {
  cd "${srcdir}/DynamoRIO-Linux-${pkgver}"
  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  mv License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  install -d "${pkgdir}/opt/dynamorio"
  cp -a * ${pkgdir}/opt/dynamorio

  find ${pkgdir}/opt/dynamorio/ -type f -executable -exec chmod 755 {} \;
  find ${pkgdir}/opt/dynamorio/ -type f -not -executable -exec chmod 644 {} \;
  find ${pkgdir}/opt/dynamorio/ -type d -exec chmod 755 {} \;
}