summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMallchad2021-09-23 20:02:29 +0100
committerMallchad2021-09-23 20:02:29 +0100
commit844f6fb898bcd039fab1ba21c76460f847ae0899 (patch)
tree96e8dcee4d331eaabd80d510cf709f4b4c91cbd8 /PKGBUILD
parentec7da8d268200ad64c2a61d15bb5b72dfd407a19 (diff)
downloadaur-844f6fb898bcd039fab1ba21c76460f847ae0899.tar.gz
Replaced patch with more robust cmake cache variable as suggested by verri
This should be less prone to failiure and is just generally cleaner Co-authored-by: Filipe Verri <filipeverri@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 2 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 066bf39d4d5..8b5cee6ba47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,19 +19,15 @@ pkgver() {
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-prepare() {
- cd "$srcdir/${pkgname%-git}"
- # Set to statically link dependencies
- sed -i "/option(BUILD_SHARED_LIBS/d" "CMakeLists.txt"
-}
-
build() {
cd "$srcdir/${pkgname%-git}"
rm -rf build
mkdir build
cd build
+ # Statically link dependencies
cmake \
+ -DBUILD_SHARED_LIBS=OFF \
-DSTANDARDESE_BUILD_TEST=OFF \
-DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
-DLIBCLANG_INCLUDE_DIR="/usr/include/" \