blob: adc3036279b911298f200cfb798089bc10ee3daa (
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
|
# Maintainer: Martin <martin.marmsoler@gmail.com>
pkgname=dbclib-git
pkgver=r24.g3482012
pkgrel=1
pkgdesc="CAN DBC C++ library."
arch=('i686' 'x86_64')
url="https://github.com/ihedvall/dbclib"
license=('MIT')
depends=('mdflib-git')
makedepends=('git' 'cmake')
provides=('dbclib')
conflicts=('dbclib')
options=('staticlibs')
source=("git+https://github.com/ihedvall/dbclib.git")
sha256sums=('SKIP')
pkgver() {
cd "dbclib"
_rev=$(git rev-list --count --all)
_hash=$(git rev-parse --short HEAD)
printf "r%s.g%s" "$_rev" "$_hash"
}
build() {
cd "dbclib"
cmake \
-B "_build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DDBC_TOOLS:BOOL=OFF \
./
make -C "_build"
}
check() {
cd "dbclib"
make -C "_build" test
}
package() {
cd "dbclib"
make -C "_build" DESTDIR="$pkgdir" install
}
|