diff options
author | Liao Junxuan | 2023-10-19 15:16:40 +0800 |
---|---|---|
committer | Liao Junxuan | 2023-10-19 15:16:40 +0800 |
commit | f69f85535bc973805908c99efe31c33d5d9569cd (patch) | |
tree | 73b7a44a2c4f90080b747a2492af411a0611e88e /PKGBUILD | |
parent | 99bc7ec53d4d29d2285c6ba028998f1a42cde099 (diff) | |
download | aur-f69f85535bc973805908c99efe31c33d5d9569cd.tar.gz |
add dynamorio 10.0.0
Althought this is not a vcs package, git is needed because upstream
uses git submodules.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 62 |
1 files changed, 39 insertions, 23 deletions
@@ -1,29 +1,45 @@ -# Maintainer: Jonathan Eyolfson <jon@eyl.io> +# Maintainer: Junxuan Liao <mikeljx at 126 dot com> pkgname=dynamorio -pkgver=9.0.1 +pkgdesc="A dynamic instrumentation tool platform" +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=('90452768bda1ee9f123f86a916ecb0a442c59bade36d999de73f759c4f79e6e7') +arch=('x86_64') +url="https://github.com/DynamoRIO/dynamorio" +license=('BSD' 'custom:libelftc' 'LGPL2.1') +groups=() +depends=('gcc-libs' 'zlib' 'libunwind' 'snappy' 'lz4' 'perl' 'qt5-base' 'python') +makedepends=('git' 'cmake' 'doxygen') +options=(!strip) +source=( + "${pkgname}::git+${url}.git#tag=release_${pkgver}" + "git+https://github.com/intel/libipt.git" + "git+https://github.com/madler/zlib.git" + ) +sha256sums=('SKIP' 'SKIP' 'SKIP') -package() { - cd "${srcdir}/DynamoRIO-Linux-${pkgver}" - install -d "${pkgdir}/usr/share/licenses/${pkgname}" - mv License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +prepare() { + cd "${srcdir}/${pkgname}" + git submodule init + git config submodule.third_party/libipt.url "$srcdir/libipt" + git config submodule.third_party/zlib.url "$srcdir/zlib" + git -c protocol.file.allow=always submodule update +} - install -d "${pkgdir}/opt/dynamorio" - cp -a * ${pkgdir}/opt/dynamorio +build() { + cmake -B build-debug -S "${srcdir}/${pkgname}" \ + -DDEBUG=ON \ + -DCMAKE_INSTALL_PREFIX="/opt/${pkgname}" + + cmake --build build-debug - 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 {} \; + cmake -B build-release -S "${srcdir}/${pkgname}" \ + -DCMAKE_INSTALL_PREFIX="/opt/${pkgname}" + + cmake --build build-release +} + +package() { + DESTDIR="$pkgdir" cmake --install build-debug + DESTDIR="$pkgdir" cmake --install build-release + install -Dm644 ${srcdir}/${pkgname}/License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |