summaryrefslogtreecommitdiff
path: root/community-testing/pysfml/PKGBUILD
blob: 204197c1b45c23da3ff2a97d2d85537bb56e90e1 (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 29367 2010-10-13 15:58:47Z 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=2
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: