blob: b1a98f2e2a0ab43883727fe685accec66cc5e919 (
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
|
# Maintainer: timasoft <tima.klester@gmail.com>
# Contributors: Youda008
# Contributors: LtdJorge
pkgname=openrgb-cppsdk-git
pkgver=v1.0.r9.g9b6ec59
pkgrel=1
pkgdesc="C++ client/SDK for OpenRGB"
url="https://github.com/Youda008/OpenRGB-cppSDK.git"
license=('MIT')
arch=('x86_64')
depends=('gcc-libs')
makedepends=('git' 'cmake' 'base-devel')
optdepends=('openrgb')
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/OpenRGB-cppSDK"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "${srcdir}/OpenRGB-cppSDK"
git submodule update --init --recursive
}
build() {
cd "${srcdir}/OpenRGB-cppSDK"
mkdir -p build
cd build
cmake -B . -S .. \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
cmake --build .
}
package() {
cd "${srcdir}/OpenRGB-cppSDK/build"
install -Dm644 liborgbsdk.a "${pkgdir}/usr/lib/liborgbsdk.a"
install -d "${pkgdir}/usr/include/OpenRGB"
install -Dm644 ../include/OpenRGB/* "${pkgdir}/usr/include/OpenRGB/"
install -d "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 "${srcdir}/OpenRGB-cppSDK/protocol_description.txt" \
"${pkgdir}/usr/share/doc/${pkgname}/protocol_description.txt"
}
|