diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 10 insertions, 42 deletions
@@ -1,24 +1,20 @@ -# Maintainer: Guillaume Maudoux <layus DOT on @AT@ gmail DOT com> - pkgname=mozart2-git -pkgver=v2.0.0.alpha.0.4182.gd630f26 +pkgver=v2.0.1.8.gdb41d83e pkgrel=1 pkgdesc="The Mozart Programming System version 2" -arch=('i686' 'x86_64') +arch=('x86_64') url="https://github.com/mozart/mozart2" license=('BSD') depends=('boost-libs' 'tk' 'gmp' 'hicolor-icon-theme' 'xdg-utils') optdepends=('emacs: Interactive programming interface (recommended)') makedepends=('java-runtime-headless' 'emacs' 'gcc' 'boost>=1.61' 'cmake' 'gtest' 'clang' 'clang-tools-extra' 'llvm') -provides=('mozart') -conflicts=('mozart' 'mozart-git' 'mozart2' 'mozart2-bin') +provides=('mozart2') +conflicts=('mozart2' 'mozart2-bin' 'mozart2-compiler') install="${pkgname}.install" source=( "$pkgname::git+https://github.com/mozart/mozart2" - 'git+https://github.com/mozart/mozart2-stdlib' - 'git+https://github.com/google/googletest' ) -sha256sums=('SKIP' 'SKIP' 'SKIP') +sha256sums=('SKIP') pkgver() { cd "$pkgname" @@ -27,27 +23,8 @@ pkgver() { prepare() { cd "$srcdir/$pkgname" - - git submodule init - git config submodule.stdlib.url $srcdir/mozart2-stdlib - git config submodule.gtest.url $srcdir/googletest - git submodule update - - # Add required libraries to executable. - # TODO : Explore clang build process, I have no idea why this may be needed. - # Normally ld should be able to identify required LLVM/Clang libs by itself. - libs="LLVM clang clangTooling clangFrontendTool clangFrontend \ - clangDriver clangSerialization clangCodeGen clangParse clangSema \ - clangStaticAnalyzerFrontend clangStaticAnalyzerCheckers \ - clangStaticAnalyzerCore clangAnalysis clangARCMigrate clangEdit \ - clangAST clangLex clangBasic" - sed -i'' \ - -e "s%(generator \"\${CLANG_LIBRARY}\"%\\0 $libs%" \ - vm/generator/main/CMakeLists.txt - - # Remove hard-coded palette settings in QTk (Avoids bug in GUI's on Linux). - sed -i'' '/tk_setPalette/ s/^/%/' \ - stdlib/wp/qtk/QTkBare.oz + git submodule update --init + patch -Np1 -i "../../gmp.patch" } build() { @@ -56,19 +33,10 @@ build() { cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr/ \ - -DMOZART_BOOST_USE_STATIC_LIBS=OFF \ + -DCMAKE_CXX_COMPILER_ARCHITECTURE=x64 \ + -Wno-dev \ "$srcdir/$pkgname" - - make #VERBOSE=1 -} - -check() { - cd "$srcdir/build" - - # Ignore VM tests for now, as they sometimes fail. - echo 'set(CTEST_CUSTOM_TESTS_IGNORE "/base/vm.oz")' >> CTestCustom.ctest - - make test + make -j$(nproc) } package() { |