summaryrefslogtreecommitdiff
path: root/community/python-pysfml/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-pysfml/PKGBUILD')
-rw-r--r--community/python-pysfml/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/python-pysfml/PKGBUILD b/community/python-pysfml/PKGBUILD
new file mode 100644
index 000000000..870960acf
--- /dev/null
+++ b/community/python-pysfml/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 40196 2011-02-21 18:40:57Z 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=3
+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: