blob: 263097e508ca62cad05892170615aa8e6fec34cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com>
pkgname=python2-sfml2
pkgver=1.1.0
pkgrel=2
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"
cp -R examples/spacial_music "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/"
cp -R examples/pyqt4 "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/"
cp -R examples/sound "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/"
find "${pkgdir}/usr/lib/python2.7/site-packages/sfml/examples/" -iname "*.*" -exec chmod 644 {} +;
# Copying the License file
install -D -m644 "$srcdir/pysfml2-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
sha256sums=('111af2ead2a7c1f2a44145059889ecbb91c08bad21dd18764391b60256b92af1')
|