Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added PKGBUILD for compiling with GCC 4.6 compatibility.

  • Loading branch information...
commit 1c4ca2d68b2b9ff5765de528a8202817a0676d48 1 parent 6ab76dd
@mosra authored
Showing with 37 additions and 0 deletions.
  1. +37 −0 PKGBUILD-gcc46
View
37 PKGBUILD-gcc46
@@ -0,0 +1,37 @@
+# Author: mosra <mosra@centrum.cz>
+pkgname=corrade
+pkgver=dev.gcc46
+pkgrel=1
+pkgdesc="Multiplatform plugin management and utility library"
+arch=('i686' 'x86_64')
+url="http://mosra.cz/blog/corrade.php"
+license=('MIT')
+makedepends=('cmake')
+options=(!strip)
+provides=('corrade-git')
+
+build() {
+ mkdir -p "$startdir/build-gcc46"
+ cd "$startdir/build-gcc46/"
+
+ if [ "$CXX" = clang++ ] ; then
+ newcxxflags=$(echo $CXXFLAGS | sed s/--param=ssp-buffer-size=4//g)
+ export CXXFLAGS="$newcxxflags"
+ fi
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_TESTS=TRUE
+ make
+}
+
+check() {
+ cd "$startdir/build-gcc46"
+ ctest --output-on-failure
+}
+
+package() {
+ cd "$startdir/build-gcc46"
+ make DESTDIR="$pkgdir/" install
+}
Please sign in to comment.
Something went wrong with that request. Please try again.