diff options
-rw-r--r-- | newapkbuild.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/newapkbuild.in b/newapkbuild.in index bbe7a44..520a60e 100644 --- a/newapkbuild.in +++ b/newapkbuild.in @@ -59,8 +59,7 @@ build_cmake() { sed -i -e 's/^\(makedepends="\)/\1cmake /' APKBUILD cat >>APKBUILD<<__EOF__ - if [ "$CBUILD" != "$CHOST" ] - then + if [ "\$CBUILD" != "\$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \\ @@ -70,7 +69,7 @@ build_cmake() { -DCMAKE_BUILD_TYPE=Release \\ -DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\ -DCMAKE_C_FLAGS="\$CFLAGS" \\ - ${CMAKE_CROSSOPTS} + \${CMAKE_CROSSOPTS} make __EOF__ } |