summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDavide Depau2020-06-16 18:21:04 +0200
committerDavide Depau2020-06-16 18:21:04 +0200
commitc11377a7a5c310c2e391aba4dd214966bbdd2c95 (patch)
tree353a4177380f67a751ab45d0b38d184a5b71a698 /PKGBUILD
parentbd4e1fd60ad3c63dddabe1567bd42e802381ea73 (diff)
downloadaur-c11377a7a5c310c2e391aba4dd214966bbdd2c95.tar.gz
Build according to CMake packaging guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a22298a12ee..59b3c9e39e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=avro-c
pkgver=1.9.2
-pkgrel=1
+pkgrel=2
pkgdesc="C bindings for Avro data serialization framework"
arch=('i686' 'x86_64')
depends=('jansson' 'snappy' 'xz' 'zlib')
@@ -19,13 +19,16 @@ build() {
cd "$srcdir/avro-release-$pkgver/lang/c"
msg2 'Building...'
- mkdir build && cd build
+ mkdir -p build && cd build
+
+ export CFLAGS+=" ${CPPFLAGS}"
+ export CXXFLAGS+=" ${CPPFLAGS}"
+
cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_C_FLAGS=-fPIC \
- -DCMAKE_CXX_FLAGS=-fPIC \
- -DTHREADSAFE=true
+ -DCMAKE_BUILD_TYPE='None' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DTHREADSAFE=true \
+ -Wno-dev
make
}