librsync: fix cmake syntax to use our CFLAGS

This commit is contained in:
Juergen Daubert 2020-11-20 13:21:15 +01:00
parent 4ffff9062f
commit 105fa6a8a1
2 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/YkDoWIePmbHFNfG6kF9wZxTSSRhJmcox6aUa0sz1t5+p7L3EWvm6uyoUh5t/BEY/JIwwidtbcxwEvbiHgJRWwY=
SHA256 (Pkgfile) = f2615c824385d59cd5bf2b9fb0d7a0ef5f0540f8f8fb000ad3d5afda0b557263
RWSE3ohX2g5d/S/qCXR3dzoKYbl8p/emgXb6xMlFQLYXTbUpxrZoVrAPHnFhadY+/ahuBrlNr2lYE8i4pNn1FUpMxn3YkvYg8gc=
SHA256 (Pkgfile) = 320f11f410ef77fcd5051205a3470e20aff86d1332a6c82d4af54e603e0f2c2e
SHA256 (.footprint) = b92352bc7d10f728be54eeedfc60c69780df3eaffaf3a01d1eee7a19d1fc8a12
SHA256 (librsync-v2.3.1.tar.gz) = dbd7eb643665691bdf4009174461463737b19b4814b789baad62914cabfe4569

View File

@ -9,10 +9,11 @@ release=1
source=(https://github.com/$name/$name/archive/v$version/$name-v$version.tar.gz)
build() {
cmake -S $name-$version -B build\
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release
cmake -S $name-$version -B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
cmake --build build
DESTDIR=$PKG cmake --install build