blob: babc5e223aec008b6ad62a88adcdc1fdc33f108b (
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
|
# Maintainer: Daniel Bermond < yahoo-com: danielbermond >
pkgname=intel-seapi-git
pkgver=17.01.28.r25.gf41831f
pkgrel=2
pkgdesc='Intel Single Event API (Intel SEAPI) (git version)'
arch=('i686' 'x86_64')
url='https://github.com/intel/IntelSEAPI/'
license=('BSD' 'GPL')
depends=('gcc-libs')
makedepends=('git' 'python' 'cmake' 'java-environment' 'classpath')
optdepends=('python: for using runtool scripts')
provides=('intel-seapi' 'intel-ittnotify' 'intel-ittnotify-git')
conflicts=('intel-seapi' 'intel-ittnotify' 'intel-ittnotify-git')
source=('git+https://github.com/intel/IntelSEAPI.git')
sha256sums=('SKIP')
[ "$CARCH" = 'i686' ] && _architecture='32'
[ "$CARCH" = 'x86_64' ] && _architecture='64'
prepare() {
cd "$pkgname"
# set install prefix
if ! grep -q "(\"\-DCMAKE_INSTALL_PREFIX:PATH='/usr'\"),$" buildall.py
then
local _unix_line="$(sed -n "/generator[[:space:]]=[[:space:]]'Unix[[:space:]]Makefiles'/=" buildall.py)"
sed -i "$((_unix_line + 4))i\\ \\(\"-DCMAKE_INSTALL_PREFIX:PATH='/usr'\")," buildall.py
fi
}
pkgver() {
cd "$pkgname"
# git, tags available
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//;s/,//'
}
build() {
cd "$pkgname"
python ./buildall.py --force_bits "$_architecture"
}
package() {
cd "${pkgname}/build_linux/${_architecture}"
make DESTDIR="$pkgdir" install
mv -f "${pkgdir}/usr/bin/libIntelSEAPI${_architecture}.so" "${pkgdir}/usr/lib"
mkdir -p "${pkgdir}/usr/share/${pkgname}"
mv -f "$pkgdir"/usr/runtool/* "${pkgdir}/usr/share/${pkgname}"
rm -rf "${pkgdir}/usr/runtool"
rm -f "${pkgdir}/usr/README.txt"
# license
cd "${srcdir}/${pkgname}/ittnotify/src/ittnotify"
install -D -m644 LICENSE.BSD "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.BSD"
}
|