blob: 8c4f99d602f0bf55594fb75452b84c3b9f3561c5 (
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
|
# Maintainer: Cynthia Rey <cynthia@cynthia.dev>
pkgname=vmaware-git
_pkgname=VMAware
pkgver=2.7.0.r58.g37c98e6
pkgrel=1
pkgdesc='Advanced VM detection library and tool'
url='https://github.com/kernelwernel/VMAware'
arch=('x86_64') # Upstream's supposedly compatible with other architectures but this is untested so for now it's x86_64 only
depends=(
glibc
libgcc
libstdc++
)
makedepends=(git cmake)
conflicts=('vmaware')
provides=('vmaware')
license=('MIT')
options=(!debug)
source=(
"git+$url"
"cmake-target-none.patch"
)
b2sums=('SKIP'
'6c34166362dc9fe11bdbde6252e0e1e1c4baef33a29f93735115af75691cc6c0ee1574101d1be05391b769ae0bfce5819097cf94fb8a39660cb68c4f14c9bbd0')
prepare() {
cd "$_pkgname"
patch -p1 -i "$srcdir/cmake-target-none.patch"
}
build() {
local cmake_options=(
-B build
-S $_pkgname
-W no-dev
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
)
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir/" cmake --install build
install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
|