Created
April 2, 2023 21:40
-
-
Save defremov/c438477d0aa145d3674bee8e79876d42 to your computer and use it in GitHub Desktop.
crrcsim-hg PKGBUILD update for pkgver 0.9.13.r3.1fc598ff00b1-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naru crrcsim-hg/PKGBUILD crrcsim-hg.patched/PKGBUILD | |
--- crrcsim-hg/PKGBUILD 2017-10-30 12:31:34.000000000 +0300 | |
+++ crrcsim-hg.patched/PKGBUILD 2023-02-17 23:52:43.103406527 +0300 | |
@@ -14,12 +14,12 @@ | |
arch=('i686' 'x86_64') | |
url="http://sourceforge.net/projects/crrcsim/" | |
license=('GPL') | |
-depends=('sdl>=1.2.5' 'portaudio' 'libjpeg' 'cgal') | |
+depends=('sdl>=1.2.5' 'portaudio' 'libjpeg' 'gmp') | |
groups=() | |
-makedepends=('mercurial' 'gawk' 'plib>=1.8.4') | |
+makedepends=('mercurial' 'gawk' 'cgal>=5.0' 'plib>=1.8.4') | |
provides=('crrcsim') | |
conflicts=('crrcsim') | |
-source=('hg+https://hg.code.sf.net/p/crrcsim/code') | |
+source=('hg+http://hg.code.sf.net/p/crrcsim/code') | |
sha256sums=('SKIP') | |
pkgver() { | |
@@ -40,7 +40,7 @@ | |
# BUILD HERE | |
# | |
sed -i "s/boost_thread-mt/boost_thread/g" ./configure.ac | |
- sed -i "s/-lCGAL/\"-lCGAL -lgmp\"/g" ./configure.ac | |
+ sed -i "s/-lCGAL/-lgmp/g" ./configure.ac | |
./autogen.sh | |
./configure --prefix=/usr | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naru crrcsim-hg/PKGBUILD crrcsim-hg.patched/PKGBUILD | |
--- crrcsim-hg/PKGBUILD 2017-10-30 12:31:34.000000000 +0300 | |
+++ crrcsim-hg.patched/PKGBUILD 2023-02-17 23:54:37.737573212 +0300 | |
@@ -14,13 +14,19 @@ | |
arch=('i686' 'x86_64') | |
url="http://sourceforge.net/projects/crrcsim/" | |
license=('GPL') | |
-depends=('sdl>=1.2.5' 'portaudio' 'libjpeg' 'cgal') | |
+depends=('sdl>=1.2.5' 'portaudio' 'libjpeg' 'gmp') | |
groups=() | |
-makedepends=('mercurial' 'gawk' 'plib>=1.8.4') | |
+makedepends=('git' 'mercurial' 'gawk' 'mpfr' 'plib>=1.8.4') | |
provides=('crrcsim') | |
conflicts=('crrcsim') | |
-source=('hg+https://hg.code.sf.net/p/crrcsim/code') | |
-sha256sums=('SKIP') | |
+source=( | |
+ 'git+https://github.com/CGAL/cgal.git' | |
+ 'hg+http://hg.code.sf.net/p/crrcsim/code' | |
+) | |
+sha256sums=( | |
+ 'SKIP' | |
+ 'SKIP' | |
+) | |
pkgver() { | |
cd code | |
@@ -29,6 +35,12 @@ | |
} | |
build() { | |
+ mkdir -p "$srcdir/cgal/build" | |
+ cd "$srcdir/cgal/build" | |
+ local _cgal_pkg="$srcdir/cgal-pkg" | |
+ cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$_cgal_pkg" | |
+ make install | |
+ | |
cd "$srcdir" | |
msg "Connecting to Mercurial server...." | |
@@ -40,9 +52,9 @@ | |
# BUILD HERE | |
# | |
sed -i "s/boost_thread-mt/boost_thread/g" ./configure.ac | |
- sed -i "s/-lCGAL/\"-lCGAL -lgmp\"/g" ./configure.ac | |
+ sed -i "s/-lCGAL/-lgmp/g" ./configure.ac | |
./autogen.sh | |
- ./configure --prefix=/usr | |
+ CPPFLAGS="-I $_cgal_pkg/include" ./configure --prefix=/usr | |
make | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment