diff options
author | root <root@rshg054.dnsready.net> | 2011-09-29 23:14:32 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-29 23:14:32 +0000 |
commit | 0abb1942e8be584d56a1b35b2d1911cbe9f5bbd1 (patch) | |
tree | 1a8030f72ecc9d90c9f4c41d9a9d0662169b6404 /testing/pygobject | |
parent | f8db5d1487e8e0ceeb97a396e357c1540a047ed8 (diff) |
Thu Sep 29 23:14:32 UTC 2011
Diffstat (limited to 'testing/pygobject')
-rw-r--r-- | testing/pygobject/PKGBUILD | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/pygobject/PKGBUILD b/testing/pygobject/PKGBUILD new file mode 100644 index 000000000..c6b846ee9 --- /dev/null +++ b/testing/pygobject/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 139044 2011-09-28 19:33:04Z ibiru $ +# Maintainer: Ionut Biru <ibiru@archlinux.org> + +pkgbase=pygobject +pkgname=(python-gobject python2-gobject pygobject-devel) +pkgver=3.0.0 +pkgrel=1 +arch=('i686' 'x86_64') +url="https://live.gnome.org/PyGObject" +license=('LGPL') +makedepends=('python' 'python2' 'python-cairo' 'python2-cairo' 'gobject-introspection') +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver}.tar.xz) +options=('!libtool') +sha256sums=('ef6735792b0d44287126a6a3b181c85559849063d770506fe06848adb87ce815') + +build() { + cd "${srcdir}" + cp -a "${pkgbase}-${pkgver}" python2-build + mkdir devel + + ( + cd python2-build + export PYTHON=/usr/bin/python2 + ./configure --prefix=/usr + make + ) + + ( + cd "${pkgbase}-${pkgver}" + ./configure --prefix=/usr + make + ) +} + +package_python-gobject() { + pkgdesc="Python 3 bindings for GObject" + depends=('gobject-introspection' 'python-cairo' "pygobject-devel=${pkgver}") + + cd "${srcdir}/${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}"/usr/{include,lib/pkgconfig} +} + +package_python2-gobject() { + pkgdesc="Python 2 bindings for GObject" + depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=${pkgver}") + + cd "${srcdir}/python2-build" + make DESTDIR="${pkgdir}" install + mv "${pkgdir}"/usr/{include,lib/pkgconfig} "${srcdir}/devel" +} + +package_pygobject-devel() { + pkgdesc="Development files for the pygobject bindings" + cd "${srcdir}/devel" + mkdir -p "${pkgdir}"/usr/{include,lib} + mv include "${pkgdir}/usr/" + mv pkgconfig "${pkgdir}/usr/lib/" +} |