blob: 2dcaee542e2a4ac4ade28f30a9b410d88bf96400 (
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
|
# Maintainer: Paul Jones <paul@spacefreak18.xyz>
_reponame=simapi
pkgname=simapi-git
pkgver=0.1.0r94
pkgrel=1
pkgdesc="Telemetry Mapping Library for Racing Sims"
arch=('x86_64')
url="https://github.com/spacefreak18/simapi"
license=('GPL3')
depends=(
)
makedepends=(
git
cmake
)
source=(
git+https://github.com/spacefreak18/simapi
)
sha256sums=(
'SKIP'
)
package() {
cd "$srcdir/$_reponame" || exit 1
git submodule sync --recursive
git submodule update --init --recursive
mkdir -p build
cd build
export CFLAGS=-Wno-unused-result
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
mkdir -p "${pkgdir}/usr/include/"
mkdir -p "${pkgdir}/usr/lib/pkgconfig"
cp "$srcdir/$_reponame"/build/lib$_reponame* "${pkgdir}/usr/lib/"
cp "$srcdir/$_reponame"/build/*.pc "${pkgdir}/usr/lib/pkgconfig/"
cp "$srcdir/$_reponame"/simapi/sim*.h "${pkgdir}/usr/include/"
}
|