summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2018-03-10 09:59:53 +0100
committerMichel Zou2018-03-10 09:59:53 +0100
commit1555782b82c67ff84b2c1b1c9f2ce9fdb4e00e4b (patch)
tree6dab033eb09eb8b549350614e89b6e88cea86c17
parentbbd5ef5dc72021e008485fe6be27f2da90c5e4a0 (diff)
downloadaur-1555782b82c67ff84b2c1b1c9f2ce9fdb4e00e4b.tar.gz
gcc
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 5 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 851b93e3205..49739336a05 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Fri Mar 9 10:07:52 UTC 2018
+# Sat Mar 10 08:59:53 UTC 2018
pkgbase = shiboken2-git
pkgver = 5.9.0.r5542.507beab9
pkgrel = 1
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
}