diff options
author | Shackra Sislock <none@none> | 2012-08-05 12:42:12 -0600 |
---|---|---|
committer | Shackra Sislock <none@none> | 2012-08-05 12:42:12 -0600 |
commit | 5d9bdbea7dba62f2382a396206e98a865af97dd9 (patch) | |
tree | 41369af8a5dc97b5fe8821ae659dc6f4718708dc /pcr/python2-pysfml2-git/PKGBUILD | |
parent | 08bdaeb91515babbff9e919d3e5aed162cbc214e (diff) |
adding: yate and pysfml2-git
Diffstat (limited to 'pcr/python2-pysfml2-git/PKGBUILD')
-rw-r--r-- | pcr/python2-pysfml2-git/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/python2-pysfml2-git/PKGBUILD b/pcr/python2-pysfml2-git/PKGBUILD new file mode 100644 index 000000000..6bd8e759c --- /dev/null +++ b/pcr/python2-pysfml2-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Philippe Huerlimann <phihue@gmail.com> +pkgname=python2-pysfml2-git +pkgver=20120804 +pkgrel=1 +pkgdesc="A Python 2 binding for SFML 2, written with Cython." +arch=('i686' 'x86_64') +url="http://pysfml2-cython.readthedocs.org/" +license=('BSD') +depends=('sfml-git' 'python2') +makedepends=('cython2' 'git') +source=() +md5sums=() +_gitroot='https://github.com/bastienleonard/pysfml2-cython.git' +_gitname='pysfml2-cython' + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + python2 setup.py build +} + +package() { + cd "$srcdir/$_gitname-build" + 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/$_gitname-build/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # Fixing permissions + chmod 644 "${pkgdir}"/usr/lib/python2.7/site-packages/sfml.so +} |