From 27996ae3144b7cfec2767b548d96de644dc4d86f Mon Sep 17 00:00:00 2001 From: Shackra Sislock Date: Mon, 13 Aug 2012 16:37:51 -0600 Subject: adding better bindings of SFML for python2 and python3 (yes, the version provided by Jonathan De Wachter) --HG-- rename : pcr/python2-pysfml2/PKGBUILD => pcr/python-sfml2/PKGBUILD rename : pcr/python2-pysfml2/PKGBUILD => pcr/python2-sfml2/PKGBUILD --- pcr/python-sfml2/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pcr/python-sfml2/PKGBUILD (limited to 'pcr/python-sfml2/PKGBUILD') diff --git a/pcr/python-sfml2/PKGBUILD b/pcr/python-sfml2/PKGBUILD new file mode 100644 index 000000000..ac6881d2e --- /dev/null +++ b/pcr/python-sfml2/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Jorge Araya Navarro +pkgname=python-sfml2 +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A Python 3 binding for SFML 2, written with Cython." +arch=('i686' 'x86_64') +url="http://openhelbreath.net/python-sfml2" +license=('GPL3') +depends=('sfml' 'python3') +makedepends=('sfml' 'cython') +conflicts=('python-sfml2') +source=('http://openhelbreath.net/python-sfml2/downloads/python-sfml2-1.1.tar.gz') +optdepends=('pyqt: To use pysfml with Qt') + +build() { + cd "$srcdir/pysfml2-$pkgver" + python3 setup.py build +} + +package() { + cd "$srcdir/pysfml2-$pkgver" + python3 setup.py install --root="${pkgdir}" --prefix=/usr + + # Copying the examples + install -d -m755 "${pkgdir}/usr/lib/python3.2/site-packages/sfml/examples" + cp -R examples/ "${pkgdir}/usr/lib/python3.2/site-packages/sfml/examples/" + + # Copying the License file + install -D -m644 "$srcdir/pysfml2-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} +sha256sums=('111af2ead2a7c1f2a44145059889ecbb91c08bad21dd18764391b60256b92af1') -- cgit v1.2.3-2-g168b