Source

pyside_aur / python-libshiboken / PKGBUILD

Full commit
arsooy 6c63ff4 

















arsooy c041185 



arsooy 6c63ff4 


arsooy c041185 
arsooy 6c63ff4 
arsooy c041185 







arsooy 6c63ff4 



















# Maintainer: arlx_ignacy <ziphims@gmail.com>
# Contributor: Matthias Maennich <arch@maennich.net>

# modify these two to whatever Python 3 interpreter you're targetting; on my
# system I use the vanilla python3
_pyver=3
_pyexec=/usr/bin/python$_pyver

pkgname=python-libshiboken
pkgver=1.1.0
pkgrel=1
pkgdesc='Support library for Python 3 bindings to Qt toolkit'
arch=('i686' 'x86_64')
license=('LGPL')
url='http://www.pyside.org'
depends=('python' 'qt>=4.7' 'openssl')
makedepends=('cmake' 'automoc4' 'generatorrunner>=0.6.16')
replaces=('libshiboken-py3')
source=("http://www.pyside.org/files/shiboken-$pkgver.tar.bz2"
        'py3build.patch')
md5sums=('9c9d696c8c426fb5abf28a6bd3759558'
         '3e0bb8ae72d2331dd8cd676dd78e5a91')


build() {
    cd "$srcdir/shiboken-$pkgver"

    msg "Applying patches ..."
    # this patch is to differentiate our build as Python 3
    patch -p1 -N < ../py3build.patch

    # of course, if you want to undo the patches you can use:
    #  $ patch -p1 -R < ../py3build.patch

    cd ..
    if [ -d build ] ; then
        msg "Removing last build ..."
        rm -rf build
    fi

    mkdir build
    cd build

    cmake ../shiboken-$pkgver -DCMAKE_INSTALL_PREFIX=/usr  \
                              -DCMAKE_BUILD_TYPE=Release   \
                              -DBUILD_TESTS=FALSE          \
                              -DPYTHON_EXECUTABLE=$_pyexec \
                              -DUSE_PYTHON3=TRUE
    make libshiboken
}


package() {
    cd "$srcdir/build/libshiboken"
    make DESTDIR=$pkgdir install
}