# $Id: PKGBUILD 17378 2008-10-29 02:23:35Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Andrew Wright <andreww@photism.org>

pkgname=wxpython
pkgver=2.8.9.2
pkgrel=1
pkgdesc="A wxWidgets GUI toolkit for Python"
arch=('i686' 'x86_64')
license=('custom:wxWindows')
url="http://www.wxpython.org"
depends=('wxgtk>=2.8.8' 'python>=2.6')
source=(http://downloads.sourceforge.net/sourceforge/wxpython/wxPython-src-${pkgver}.tar.bz2)
md5sums=('e3d89746af98b9279e4ff39a57f6dc63')
sha1sums=('a0d58d8b9606d04a35b9853da15eb7dfb08d5637')


build() {
  cd ${srcdir}/wxPython-src-${pkgver}/wxPython
  python setup.py \
    WXPORT=gtk2 \
    UNICODE=1 \
    build install --root=${pkgdir} || return 1
  install -D -m644 ../docs/licence.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
}
