diff options
author | Dario Ostuni | 2016-02-18 14:36:58 +0100 |
---|---|---|
committer | Dario Ostuni | 2016-02-18 14:36:58 +0100 |
commit | 907e85dde26d8a6501e1c345b75bc6b91d26df24 (patch) | |
tree | e3a76e3ea7276dbae98376c70198d61c144a5823 | |
parent | 32dc82f8d751a0d64d2a1af9c9dc8a5cd8b2e2e8 (diff) | |
download | aur-907e85dde26d8a6501e1c345b75bc6b91d26df24.tar.gz |
Static libs are now builded
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Wed Feb 17 22:54:09 UTC 2016 +# Thu Feb 18 13:36:49 UTC 2016 pkgbase = mingw-w64-yaml-cpp pkgdesc = YAML parser and emitter in C++, written around the YAML 1.2 spec (mingw-w64) pkgver = 0.5.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/jbeder/yaml-cpp arch = any license = MIT @@ -3,7 +3,7 @@ _pkgname=yaml-cpp pkgname=mingw-w64-${_pkgname} pkgver=0.5.3 -pkgrel=1 +pkgrel=2 pkgdesc="YAML parser and emitter in C++, written around the YAML 1.2 spec (mingw-w64)" url="https://github.com/jbeder/yaml-cpp" arch=('any') @@ -21,6 +21,8 @@ build() { unset LDFLAGS for _arch in ${_architectures}; do mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake .. -DCMAKE_INSTALL_PREFIX=/usr/${_arch} -DBUILD_SHARED_LIBS=OFF + make ${_arch}-cmake .. -DCMAKE_INSTALL_PREFIX=/usr/${_arch} -DBUILD_SHARED_LIBS=ON make popd @@ -32,7 +34,9 @@ package() { cd "$srcdir/${_pkgname}-release-$pkgver/build-${_arch}" make DESTDIR=$pkgdir install - + + install -Dm644 libyaml-cpp.a $pkgdir/usr/${_arch}/lib/libyaml-cpp.a + install -Dm644 yaml-cpp-config.cmake $pkgdir/usr/${_arch}/lib/cmake/${_pkgname}/yaml-cpp-config.cmake install -Dm644 yaml-cpp-config-version.cmake $pkgdir/usr/${_arch}/lib/cmake/${_pkgname}/yaml-cpp-config-version.cmake install -Dm644 yaml-cpp-targets.cmake $pkgdir/usr/${_arch}/lib/cmake/${_pkgname}/yaml-cpp-targets.cmake |