blob: 174226cb5c938f6760be5817e07aad83b80bc3e8 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Junxuan Liao <mikeljx at 126 dot com>
_pkgname=dynamorio
pkgname=$_pkgname-git
pkgdesc="A dynamic instrumentation tool platform"
pkgver=10.93.r6456.577db95d9
pkgrel=1
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')
provides=("$_pkgname=$pkgver")
options=(!strip !lto)
source=(
"${pkgname}::git+${url}.git"
"git+https://github.com/intel/libipt.git"
"git+https://github.com/madler/zlib.git"
"0001-fix-compilation-with-gcc-14.patch"
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'67f72650333680dffada443c424573214a6740b5bfabc92b012a44455ce4fb82'
)
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s.r%s.%s" \
"$(sed -n 's/.*VERSION_NUMBER_DEFAULT "\([[:digit:]]\+\.[[:digit:]]\+\).*/\1/p' CMakeLists.txt)" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
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
patch --forward --strip=1 --input=../0001-fix-compilation-with-gcc-14.patch
}
build() {
cmake -B build-debug -S "${srcdir}/${pkgname}" \
-DDEBUG=ON \
-DCMAKE_INSTALL_PREFIX="/opt/${pkgname}"
cmake --build build-debug
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"
}
|