summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Depau2020-06-16 18:21:04 +0200
committerDavide Depau2020-06-16 18:21:04 +0200
commitc11377a7a5c310c2e391aba4dd214966bbdd2c95 (patch)
tree353a4177380f67a751ab45d0b38d184a5b71a698
parentbd4e1fd60ad3c63dddabe1567bd42e802381ea73 (diff)
downloadaur-c11377a7a5c310c2e391aba4dd214966bbdd2c95.tar.gz
Build according to CMake packaging guidelines
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 11 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 77bddefc2c0..0df7c21abc2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = avro-c
pkgdesc = C bindings for Avro data serialization framework
pkgver = 1.9.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/apache/avro
arch = i686
arch = x86_64
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
}