Skip to content

Instantly share code, notes, and snippets.

@maleadt
Last active August 29, 2015 14:19
Show Gist options
  • Save maleadt/27fe14cf646d43fe9333 to your computer and use it in GitHub Desktop.
Save maleadt/27fe14cf646d43fe9333 to your computer and use it in GitHub Desktop.
# Maintainer: Zifei Tong <soariez@gmail.com>
# Contributor: Tim Besard
pkgname=dyninst
pkgver=8.2.1
pkgrel=1
pkgdesc="An API for run-time code generation"
url="http://www.dyninst.org"
arch=('x86_64' 'i686')
license=('LGPL')
depends=('boost' 'libdwarf')
install="dyninst.install"
source=("http://www.dyninst.org/sites/default/files/downloads/${pkgname}/${pkgver}/DyninstAPI-${pkgver}.tgz")
sha1sums=('feeb6aeb288f1e34a07fb9c402c49f2e48a1a187')
build() {
cd "$srcdir/Dyninst-$pkgver"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_INCLUDE_DIR:PATH=/usr/include/dyninst \
-DINSTALL_CMAKE_DIR:PATH=/usr/lib/cmake/Dyninst
# NOTE: pass -DBUILD_RTLIB_32=ON to build a 32-bit library as well
make
}
package() {
cd "$srcdir/Dyninst-$pkgver"
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment