diff options
author | aurelien <aurelien@cwb.io> | 2013-09-23 10:33:22 +0200 |
---|---|---|
committer | aurelien <aurelien@cwb.io> | 2013-09-23 10:33:22 +0200 |
commit | 2735c9d273c54b555681f30f5c685998fed7b484 (patch) | |
tree | f8172dbea44d1c4751a99a62fb236a14c9d2dc20 /pcr/python-pygame-hg/PKGBUILD | |
parent | d78a32a6ccb8663a62a093b54e947e2efc840fe0 (diff) | |
parent | 97f65e06566f3bb15bc7395624017b8e6ca0d043 (diff) | |
download | abslibre-2735c9d273c54b555681f30f5c685998fed7b484.tar.gz abslibre-2735c9d273c54b555681f30f5c685998fed7b484.tar.bz2 abslibre-2735c9d273c54b555681f30f5c685998fed7b484.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/python-pygame-hg/PKGBUILD')
-rw-r--r-- | pcr/python-pygame-hg/PKGBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/pcr/python-pygame-hg/PKGBUILD b/pcr/python-pygame-hg/PKGBUILD new file mode 100644 index 000000000..c48317b19 --- /dev/null +++ b/pcr/python-pygame-hg/PKGBUILD @@ -0,0 +1,72 @@ +# Maintainer: Márcio Silva <coadde@lavabit.com> + +_pkgname=pygame +_pkgver=1.9.2 +_pyname=python +_py3ver=3.3 +_py2ver=2.7 +_pkg3name=$_pyname-$_pkgname +_pkg2name=${_pyname}2-$_pkgname +_srcver=pre.d$(LC_ALL=C date -u +%Y%m%d) + +pkgbase=$_pyname-$_pkgname +pkgname=( + $_pkg3name-hg + $_pkg2name-hg +) +pkgver=$_pkgver$_srcver +pkgrel=1 +pkgdesc="${_pyname^} game library" +arch=( + mips64el + x86_64 + i686 +) +url=http://www.$_pkgname.org/ +license=LGPL2.1 +depends=( + ffmpeg + portmidi + python + python2 + #sdl_gfx + sdl_image + sdl_mixer + sdl_ttf +) +makedepends=mercurial +source=hg+https://bitbucket.org/$_pkgname/$_pkgname +sha512sums=SKIP + +package_python-pygame-hg() { + # disabled, due which conflicts with $_pkg2name + #provides=("$_pkg3name=$_pkgver") + #conflicts=$_pkg3name + + cd $_pkgname + + msg Building + find . -type f -exec sed -i "s|/usr/bin/env ${_pyname}2|/usr/bin/env $_pyname|" {} + + $_pyname config.py -auto + $_pyname setup.py install --root=$pkgdir --prefix=/usr + + msg 'Copying the examples and tests' + cp -va examples lib/* $pkgdir/usr/lib/$_pyname$_py3ver/site-packages/$_pkgname + cp -va test/* $pkgdir/usr/lib/$_pyname$_py3ver/site-packages/$_pkgname/tests +} + +package_python2-pygame-hg() { + provides=("$_pkg2name=$_pkgver") + conflicts=$_pkg2name + + cd $_pkgname + + msg Building + find . -type f -exec sed -i "s|/usr/bin/env $_pyname|/usr/bin/env ${_pyname}2|" {} + + ${_pyname}2 config.py -auto + ${_pyname}2 setup.py install --root=$pkgdir --prefix=/usr + + msg 'Copying the examples and tests' + cp -va examples lib/* $pkgdir/usr/lib/$_pyname$_py2ver/site-packages/$_pkgname + cp -va test/* $pkgdir/usr/lib/$_pyname$_py2ver/site-packages/$_pkgname/tests +} |