summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEd Branch2016-02-02 22:01:57 -0600
committerEd Branch2016-02-02 22:01:57 -0600
commit42d60653c05a9142521f15a62d23a331038a1944 (patch)
treeb39dfbda8ed3140f58de21699e2113b813fae562 /PKGBUILD
parentfd00efc3fb63a231ed232e8b2bc6642f65f563fa (diff)
downloadaur-libvariant.tar.gz
1.0.1-4 - Properly use C*FLAGS and LDFLAGS environment vars
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5618bd9c25f..4741e1f6c9c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgbase=libvariant
pkgname=libvariant
pkgver=1.0.1
-pkgrel=3
+pkgrel=4
pkgdesc="A C++ dynamically typed composable object library with de/serializers"
arch=('i686' 'x86_64')
url="https://bitbucket.org/gallen/libvariant"
@@ -20,8 +20,13 @@ prepare() {
build() {
cd "${pkgname}-${pkgver}/build"
- cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr \
- -DCMAKE_BUILD_TYPE=Release -DLIBVARIANT_BUILD_EXAMPLES=off ..
+ cmake -DCMAKE_C_FLAGS:STRING="${CFLAGS} ${CPPFLAGS}" \
+ -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} ${CPPFLAGS}" \
+ -DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
+ -DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DLIBVARIANT_BUILD_EXAMPLES=off ..
make
}