summaryrefslogtreecommitdiff
path: root/community/python-sfml/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-sfml/PKGBUILD')
-rw-r--r--community/python-sfml/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/python-sfml/PKGBUILD b/community/python-sfml/PKGBUILD
new file mode 100644
index 000000000..d38c21200
--- /dev/null
+++ b/community/python-sfml/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+pkgname=python-sfml
+pkgver=1.3
+pkgrel=1
+pkgdesc="The unofficial Python binding for SFML"
+arch=('i686' 'x86_64')
+url="http://python-sfml.org"
+license=('LGPL')
+depends=('sfml' 'python')
+makedepends=('cython' 'git')
+source=("git://github.com/Sonkun/python-sfml.git#tag=v${pkgver}")
+md5sums=("SKIP")
+
+build() {
+ cd "$srcdir"/python-sfml
+
+ python setup.py build_ext
+}
+
+package() {
+ cd "$srcdir"/python-sfml
+
+ python setup.py install --root="${pkgdir}" --prefix=/usr
+
+ # Copying the License file
+ install -D -m644 "$srcdir/python-sfml/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}