Advertisement
Guest User

Untitled

a guest
Mar 24th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.94 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 129979a..1ecfb9e 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -11,14 +11,17 @@ arch=('i686' 'x86_64')
  6.  license=('ZLIB')
  7.  depends=('boost-libs' 'xz')
  8.  makedepends=('boost' 'cmake')
  9. -source=("http://constexpr.org/innoextract/files/$pkgname-$pkgver.tar.gz"{,.sig})
  10. +source=("http://constexpr.org/innoextract/files/$pkgname-$pkgver.tar.gz"{,.sig}
  11. +         upstream-cmake35.patch)
  12.  sha256sums=('f2594e992ccf2859455475794803b29a67393fadb69d4df1eec34c451ffa48cf'
  13. -            'SKIP')
  14. +            'SKIP'
  15. +            '6fd76ac56142fe3e56886be713b023ee9673c45a6c7b3b7401aa22ed7ed4f2b7')
  16.  validpgpkeys=("ADE9653703D4ADE0E997758128555A66D7E1DEC9") # Daniel Scharrer
  17.  
  18.  build() {
  19.    cd $pkgname-$pkgver
  20. -  
  21. +
  22. +  patch -Np1 -i "${srcdir}/upstream-cmake35.patch"
  23.    cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  24.    make
  25.  }
  26. diff --git a/upstream-cmake35.patch b/upstream-cmake35.patch
  27. new file mode 100644
  28. index 0000000..a8d4792
  29. --- /dev/null
  30. +++ b/upstream-cmake35.patch
  31. @@ -0,0 +1,30 @@
  32. +From 01705758dd04d937160c99c8b87c6fa2057db894 Mon Sep 17 00:00:00 2001
  33. +From: Daniel Scharrer <daniel@constexpr.org>
  34. +Date: Tue, 23 Feb 2016 05:45:50 +0100
  35. +Subject: [PATCH] CMake: Disable variable expansion for quoted strings in if()
  36. +
  37. +This makes the build system more rubust against stray variables
  38. +coming from included CMake scripts provided by the system.
  39. +
  40. +Fixes build with CMake 3.5 (tested with 3.5.0-rc3).
  41. +
  42. +Fixes: issue #50
  43. +---
  44. + CMakeLists.txt | 5 +++++
  45. + 1 file changed, 5 insertions(+)
  46. +
  47. +diff --git a/CMakeLists.txt b/CMakeLists.txt
  48. +index 02e0308..8653b93 100644
  49. +--- a/CMakeLists.txt
  50. ++++ b/CMakeLists.txt
  51. +@@ -2,6 +2,11 @@ project(innoextract)
  52. +
  53. + cmake_minimum_required(VERSION 2.8)
  54. +
  55. ++if(POLICY CMP0054)
  56. ++  # CMake 3.1+: Only interpret if() arguments as variables or keywords when unquoted.
  57. ++  cmake_policy(SET CMP0054 NEW)
  58. ++endif()
  59. ++
  60. +
  61. + # Define configuration options
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement