diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-14 10:56:20 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-14 10:56:20 -0300 |
commit | d5be0922f99093b4659507a4c17c664ac5c2f577 (patch) | |
tree | 03704fe8477fe4f6e3f2f15f0bd848b5e4b702e9 /pcr/python2-sfml2 | |
parent | c6d876200ad3def9a1e9725b3daf29e01ae8e3c5 (diff) | |
parent | a36c4a33891932acf2ac1cdebbb9caed01d7df6f (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-staging/pdf2djvu/PKGBUILD
core/systemd/PKGBUILD
extra/audacious/PKGBUILD
extra/cups/PKGBUILD
multilib-testing/lib32-libdrm/PKGBUILD
staging/inkscape/PKGBUILD
staging/poppler/PKGBUILD
testing/ethtool/PKGBUILD
testing/libdrm/PKGBUILD
testing/openconnect/PKGBUILD
Diffstat (limited to 'pcr/python2-sfml2')
-rw-r--r-- | pcr/python2-sfml2/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/python2-sfml2/PKGBUILD b/pcr/python2-sfml2/PKGBUILD new file mode 100644 index 000000000..4832f73f4 --- /dev/null +++ b/pcr/python2-sfml2/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com> +pkgname=python2-sfml2 +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A Python 2 binding for SFML 2, written with Cython." +arch=('i686' 'x86_64') +url="http://openhelbreath.net/python-sfml2" +license=('GPL3') +depends=('sfml' 'python2') +makedepends=('sfml' 'cython2') +conflicts=('python2-pysfml2' 'python2-pysfml2-git' 'python2-sfml2') +source=('http://openhelbreath.net/python-sfml2/downloads/python-sfml2-1.1.tar.gz') +optdepends=('pyqt-common: To use pysfml with Qt') + +build() { + cd "$srcdir/pysfml2-$pkgver" + python2 setup.py build +} + +package() { + cd "$srcdir/pysfml2-$pkgver" + python2 setup.py install --root="${pkgdir}" --prefix=/usr + + # Copying the examples + install -d -m755 "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples" + install -d -m755 "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/spacial_music" + install -d -m755 "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/pyqt4" + install -d -m755 "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/sound" + + cp -R examples/spacial_music "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/spacial_music" + cp -R examples/pyqt4 "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/pyqt4" + cp -R examples/sound "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/sound" + + # Copying the License file + install -D -m644 "$srcdir/pysfml2-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} +sha256sums=('111af2ead2a7c1f2a44145059889ecbb91c08bad21dd18764391b60256b92af1') |