diff options
Diffstat (limited to 'community-testing/pysfml/PKGBUILD')
-rw-r--r-- | community-testing/pysfml/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community-testing/pysfml/PKGBUILD b/community-testing/pysfml/PKGBUILD new file mode 100644 index 000000000..204197c1b --- /dev/null +++ b/community-testing/pysfml/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 29367 2010-10-13 15:58:47Z svenstaro $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: scj <scj(at)archlinux(dot)us> + +pkgname=('python-pysfml' 'python2-pysfml') +pkgbase=python-pysfml +pkgver=1.6 +pkgrel=2 +pkgdesc="Python bindings for the SFML library" +arch=('i686' 'x86_64') +url="http://www.sfml-dev.org" +makedepends=('sfml' 'python' 'python2') +license=('zlib') +depends=() +replaces=('pysfml') +source=(http://downloads.sourceforge.net/sfml/SFML-${pkgver}-python-sdk.zip) +md5sums=('9acaf793ae9a498a51f7f6fc74307b32') + +build() { + cd "${srcdir}/SFML-${pkgver}/python" +} + +package_python-pysfml() { + depends=('sfml' 'python') + + cd "${srcdir}/SFML-${pkgver}/python" + + python3 setup.py install --root=${pkgdir} +} + +package_python2-pysfml() { + depends=('sfml' 'python2') + + cd "${srcdir}/SFML-${pkgver}/python" + + python2 setup.py install --root=${pkgdir} +} + +# vim:set ts=2 sw=2 et: |