From 8d3ce4cb58cbf381c3c1ce021b203fafa4b05d9e Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 8 Nov 2020 11:46:30 +0000 Subject: [PATCH] libproxy: updated cmake syntax --- libproxy/.signature | 4 ++-- libproxy/Pkgfile | 40 ++++++++++++++++++---------------------- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/libproxy/.signature b/libproxy/.signature index 36e792375..9cb1325f2 100644 --- a/libproxy/.signature +++ b/libproxy/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF38dmP1Ga2gfpJU7S5pRSfxHK+0alF3vYQsoOyuk6djxErthrpXlReipMPAb5b/Q03rAmWg+qtiA8WY2CA3elnAM= -SHA256 (Pkgfile) = 6dba3b2e00f0c9c9f94e3f7f386e191ace9d06f86bd3efa26c8aac660fbff54a +RWSagIOpLGJF3zhAOc1LCVMmZIBh5aUJtaQbzasEn2q0m9HCo3AiNxc1+bMxUeTIWrq4m3sI5mLA7kqMZWp2slRIE572qgSOXA8= +SHA256 (Pkgfile) = 3a7bc80662d52510aafc61ab3940ecdf9acd3eb59674048f72e72e662cd66e57 SHA256 (.footprint) = e9d5184325707b70c1a1c49c0fc3f2465f60e87e0b506ccefd8f9cdbba051e03 SHA256 (libproxy-0.4.15.tar.xz) = 654db464120c9534654590b6683c7fa3887b3dad0ca1c4cd412af24fbfca6d4f diff --git a/libproxy/Pkgfile b/libproxy/Pkgfile index a6620dbe8..0d304c84d 100644 --- a/libproxy/Pkgfile +++ b/libproxy/Pkgfile @@ -9,27 +9,23 @@ release=1 source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz) build() { - cd $name-$version + cmake -S$name-$version -B build -G Ninja \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \ + -D CMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \ + -D WITH_DOTNET=off \ + -D WITH_GNOME3=off \ + -D WITH_KDE=off \ + -D WITH_NM=off \ + -D WITH_PERL=off \ + -D WITH_PYTHON2=off \ + -D WITH_PYTHON3=off \ + -D WITH_VALA=off \ + -D WITH_WEBKIT=off \ + -D WITH_WEBKIT3=off \ + -Wno-dev - mkdir build - cd build - - cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_C_FLAGS="$CFLAGS" \ - -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DWITH_DOTNET=off \ - -DWITH_GNOME3=off \ - -DWITH_KDE=off \ - -DWITH_NM=off \ - -DWITH_PERL=off \ - -DWITH_PYTHON2=off \ - -DWITH_PYTHON3=off \ - -DWITH_VALA=off \ - -DWITH_WEBKIT=off \ - -DWITH_WEBKIT3=off - - make - make DESTDIR=$PKG install + cmake --build build + DESTDIR=$PKG cmake --install build }