summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2018-03-10 09:59:53 +0100
committerMichel Zou2018-03-10 09:59:53 +0100
commit1555782b82c67ff84b2c1b1c9f2ce9fdb4e00e4b (patch)
tree6dab033eb09eb8b549350614e89b6e88cea86c17 /PKGBUILD
parentbbd5ef5dc72021e008485fe6be27f2da90c5e4a0 (diff)
downloadaur-1555782b82c67ff84b2c1b1c9f2ce9fdb4e00e4b.tar.gz
gcc
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 4 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e5223b346db..0d63b0cefad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,31 +26,22 @@ prepare() {
cd "$srcdir/$pkgbase"
}
-build(){
+build() {
# Build for python2.
cd "$srcdir"/$pkgbase/sources/shiboken2
+ cmake_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF"
mkdir -p build-py2 && cd build-py2
cmake \
- -DCMAKE_C_COMPILER=/usr/bin/clang \
- -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TESTS=OFF \
-DUSE_PYTHON_VERSION=2 \
- -DBUILD_TESTS=OFF ..
+ ${cmake_args} ..
make
# Build for python3.
cd "$srcdir"/$pkgbase/sources/shiboken2
mkdir -p build-py3 && cd build-py3
cmake \
- -DCMAKE_C_COMPILER=/usr/bin/clang \
- -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TESTS=OFF \
-DUSE_PYTHON_VERSION=3 \
- -DBUILD_TESTS=OFF ..
+ ${cmake_args} ..
make
}