blob: 7ce50779b25fdd759c299f1875a6bd9fb515e472 (
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
|
# Maintainer: Wesley Chan https://aur.archlinux.org/account/Wesley_Chan
# Maintainer: Zhirui Dai https://aur.archlinux.org/account/daizhirui
# Original authors: Sven-Hendrik Haase <sh@lutzhaase.com>, Markus Martin <markus@archwyrm.net>
pkgname=yaml-cpp-git
pkgver=0.8.0.r30.g76dc671
pkgrel=1
pkgdesc="YAML parser and emitter in C++, written around the YAML 1.2 spec"
url="https://github.com/jbeder/yaml-cpp"
arch=('i686' 'x86_64')
license=('MIT')
depends=('gcc-libs' 'glibc')
conflicts=('yaml-cpp')
provides=('libyaml-cpp.so')
makedepends=('boost' 'cmake' 'git')
source=(${pkgname}::git+https://github.com/jbeder/yaml-cpp.git)
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir
cmake -B build -S $pkgname -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_INSTALL=ON
cmake --build build -- -j$(nproc)
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|