summaryrefslogtreecommitdiff
path: root/community/python-pysfml/PKGBUILD
blob: 870960acf680b7333962ac1f73e14532db7bcb2c (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
37
38
39
# $Id: PKGBUILD 40196 2011-02-21 18:40:57Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: scj <scj(at)archlinux(dot)us>

pkgname=('python-pysfml' 'python2-pysfml')
pkgbase=python-pysfml
pkgver=1.6
pkgrel=3
pkgdesc="Python bindings for the SFML library"
arch=('i686' 'x86_64')
url="http://www.sfml-dev.org"
makedepends=('sfml' 'python' 'python2')
license=('zlib')
depends=()
replaces=('pysfml')
source=(http://downloads.sourceforge.net/sfml/SFML-${pkgver}-python-sdk.zip)
md5sums=('9acaf793ae9a498a51f7f6fc74307b32')

build() {
  cd "${srcdir}/SFML-${pkgver}/python"
}

package_python-pysfml() {
  depends=('sfml' 'python')

  cd "${srcdir}/SFML-${pkgver}/python"

  python3 setup.py install --root=${pkgdir}
}

package_python2-pysfml() {
  depends=('sfml' 'python2')

  cd "${srcdir}/SFML-${pkgver}/python"

  python2 setup.py install --root=${pkgdir}
}

# vim:set ts=2 sw=2 et: