diff options
author | Shackra Sislock <none@none> | 2012-08-13 13:48:00 -0600 |
---|---|---|
committer | Shackra Sislock <none@none> | 2012-08-13 13:48:00 -0600 |
commit | f8556f42f54505c0b52eed97bedebf12c9e9df68 (patch) | |
tree | 37a77017d88fc903bf9de8625e3906c171b9a30f /pcr/python2-pysfml2/PKGBUILD | |
parent | 14d1956e0bc3b5d1da3ad5701031efdfde243d62 (diff) |
fighting with python2-pysfml and sfml-git
--HG--
rename : pcr/python2-pysfml2-git/PKGBUILD => pcr/python2-pysfml2/PKGBUILD
Diffstat (limited to 'pcr/python2-pysfml2/PKGBUILD')
-rw-r--r-- | pcr/python2-pysfml2/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/python2-pysfml2/PKGBUILD b/pcr/python2-pysfml2/PKGBUILD new file mode 100644 index 000000000..e4638f4fc --- /dev/null +++ b/pcr/python2-pysfml2/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com> +pkgname=python2-pysfml2 +pkgver=0.2.1 +pkgrel=2 +pkgdesc="A Python 2 binding for SFML 2, written with Cython." +arch=('i686' 'x86_64') +url="http://pysfml2-cython.readthedocs.org/" +license=('BSD') +depends=('python2') +makedepends=('sfml' 'cython2') +conflicts=('python2-pysfml2' 'python2-pysfml2-git') +source=('https://github.com/downloads/bastienleonard/pysfml2-cython/pySFML-0.2.1.tar.gz') + +build() { + cd "$srcdir/pySFML-$pkgver" + python2 setup.py build +} + +package() { + cd "$srcdir/pySFML-$pkgver" + python2 setup.py install --root="${pkgdir}" --prefix=/usr + + # Copying the examples + cp -R examples "${pkgdir}/usr/lib/python2.7/site-packages/pysfml" + + # Copying the License file + install -D -m644 "$srcdir/pySFML-$pkgver/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # Fixing permissions + chmod 644 "${pkgdir}"/usr/lib/python2.7/site-packages/sfml.so +} +sha256sums=('6cac3a50f67450b8879af0b82afee157bd5682c8bedb3633c7d9efb77628a4c8') |