diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-08-14 02:28:15 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-08-14 02:28:15 -0300 |
commit | 62e6bdfc5ff705d92cb0211131d7c20cca4d9a47 (patch) | |
tree | 4967fd4cc5eacab24e4cf4d6efa1fec8a6de4010 /pcr/python-sfml2/PKGBUILD | |
parent | 936d56a07c385cfaab208d5a9ec7fd455d0a7cc9 (diff) | |
parent | 27996ae3144b7cfec2767b548d96de644dc4d86f (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/python-sfml2/PKGBUILD')
-rw-r--r-- | pcr/python-sfml2/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
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 <jorgean@lavabit.com> +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') |