Created
January 24, 2010 13:13
-
-
Save ku1ik/285195 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 57969 2009-11-02 22:50:22Z andrea $ | |
# Maintainer: Pierre Schmitz <[email protected]> | |
pkgbase=kdebindings | |
pkgname=('kdebindings-ruby' | |
'kdebindings-smoke') | |
groups=('kdebindings') | |
pkgver=4.3.95 | |
pkgrel=1 | |
arch=('i686' 'x86_64') | |
url='http://www.kde.org' | |
license=('GPL' 'LGPL') | |
makedepends=('pkgconfig' 'cmake' 'automoc4' 'kdepimlibs' 'polkit-qt' 'qimageblitz' 'qscintilla' 'ruby' 'kdegraphics-okular') | |
# source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2") | |
# md5sums=('4bc76f60e2c175d4e413a374c87f0e19') | |
build() { | |
export MONO_SHARED_DIR="${srcdir}/build/.mono" | |
mkdir -p "$MONO_SHARED_DIR" | |
cd $srcdir/build | |
# disable broken examples | |
sed -e 's#add_subdirectory( examples )##' -i ../${pkgbase}-${pkgver}/csharp/plasma/CMakeLists.txt || return 1 | |
# fix build with ruby 1.9 | |
# see http://bugs.archlinux.org/task/16175 | |
find ../$pkgbase-$pkgver/ruby -name CMakeLists.txt \ | |
-exec sed -i "s|\${RUBY_INCLUDE_PATH}|\${RUBY_INCLUDE_PATH} /usr/include/ruby-1.9.1/${CARCH}-linux|" {} \; | |
cmake ../${pkgbase}-${pkgver} \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_SKIP_RPATH=ON \ | |
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DBUILD_java=OFF \ | |
-DBUILD_php=OFF \ | |
-DBUILD_falcon=OFF \ | |
-DENABLE_KROSSRUBY=OFF | |
make | |
} | |
package_kdebindings-csharp() { | |
pkgdesc='KDE bindings for mono' | |
depends=('kdebindings-smoke' 'mono') | |
export MONO_SHARED_DIR="${srcdir}/build/.mono" | |
mkdir -p "$MONO_SHARED_DIR" | |
cd $srcdir/build/csharp | |
make DESTDIR=$pkgdir install | |
} | |
package_kdebindings-python() { | |
pkgdesc='KDE bindings for python' | |
depends=('kdepimlibs' 'pyqt' 'polkit-qt') | |
cd $srcdir/build/python | |
make DESTDIR=$pkgdir install | |
} | |
package_kdebindings-ruby() { | |
pkgdesc='KDE bindings for ruby' | |
depends=('kdebindings-smoke' 'ruby') | |
cd $srcdir/build/ruby | |
make DESTDIR=$pkgdir install | |
} | |
package_kdebindings-smoke() { | |
pkgdesc='Language independent library for Qt and KDE bindings' | |
depends=('kdepimlibs' 'qscintilla') | |
groups=() | |
cd $srcdir/build/smoke | |
make DESTDIR=$pkgdir install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment