Source

pyside_aur / python-pyside / PKGBUILD

# Maintainer: arlx_ignacy <ziphims@gmail.com>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>


# 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-pyside
pkgver=1.1.1
pkgrel=1
pkgdesc='CPython Qt bindings generated using the Shiboken generator. (Python 3 build)'
arch=('i686' 'x86_64')
license=('LGPL')
url='http://www.pyside.org'
depends=('python-shiboken>=1.1.1' 'python' 'qt>=4.8' 'phonon' 'mesa')
makedepends=('cmake' 'automoc4' 'python-shiboken>=1.1.1')
replaces=('pyside-py3')
source=("http://www.pyside.org/files/pyside-qt4.8+$pkgver.tar.bz2"
        'cmake_fixes.patch')
md5sums=('0176d3746074afe47373d7302e1b4501'
         '4a538e43dcfcd6c3bd67b8915f0d9769')


build() {
    cd "$srcdir/pyside-qt4.8+$pkgver"

    msg "Applying patches ..."
    # this patch is to use Python 3 libraries & generator
    patch -p1 -N < ../cmake_fixes.patch

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

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

    mkdir build
    cd build

    cmake ../pyside-qt4.8+$pkgver -DCMAKE_INSTALL_PREFIX=/usr \
                                  -DCMAKE_BUILD_TYPE=Release  \
                                  -Dpyside_SUFFIX=-python3
    make
}

package() {
    cd "$srcdir/build"
    make DESTDIR=$pkgdir install
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.