1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
4 pkgver=0.1.1.r88.ca69d0d
6 _commit=ca69d0dd08a03fc0210820a4f81bfd217ad25722
7 pkgdesc='A DBC file parsing library written in C++'
10 url='https://github.com/LinuxDevon/dbc_parser_cpp'
12 makedepends=(git cmake catch2)
13 source=(git+https://github.com/LinuxDevon/dbc_parser_cpp#commit=$_commit)
18 git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./'
22 cmake -B build -S ${pkgname//-/_} \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects"
29 DESTDIR="$pkgdir" cmake --install build
30 install -Dm644 ${pkgname//-/_}/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname