summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorosch2020-09-04 12:09:21 +0200
committerosch2020-09-04 12:09:21 +0200
commit587873f6781b741b6e4a7b7b65f71ef422261b6e (patch)
tree37a892ca33f533e32b338cdf6ca6fa5615f146b1
parent3c230f294732e00b1dd3db7e5be1205781032c1a (diff)
downloadaur-587873f6781b741b6e4a7b7b65f71ef422261b6e.tar.gz
fix for 'CMake Error at cmake/versiontools.cmake:49' if building outside a git repo
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 4 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bd4157e33c5..bcc73c293f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,12 +11,12 @@ pkgbase = surge-complete
license = GPL3
makedepends = steinberg-vst36
makedepends = premake-git
+ makedepends = git
makedepends = rsync
makedepends = cmake
makedepends = libsndfile
makedepends = lv2
makedepends = python
- makedepends = steinberg-vst36
depends = cairo
depends = fontconfig
depends = freetype2
diff --git a/PKGBUILD b/PKGBUILD
index 0866b2aa010..1b1462fd0dc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -43,6 +43,9 @@ prepare() {
sed -e "s/@SURGE_BUILD_ARCH@/${CARCH}/g" \
-e "s/@SURGE_FULL_VERSION@/${pkgver}/g" \
-i src/common/version.cpp.in
+ sed -e 's/if(\${GIT_BRANCH} /if("\${GIT_BRANCH}" /g' \
+ -e 's/ FIND \${GIT_BRANCH} / FIND "\${GIT_BRANCH}" /g' \
+ -i cmake/versiontools.cmake
}
build() {