summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 719c9882ab19ad2f7244184373e87f162d9b65a8 (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
# Maintainer: Fredy GarcĂ­a <frealgagu at gmail dot com>
# Contributor: feuri <padfoot at exemail dot com dot au>
# Contributor: feuri <mail at feuri dot de>

pkgname=python-pysdl2
pkgver=0.9.6
pkgrel=2
pkgdesc="Python ctypes wrapper around SDL2"
arch=('any')
url="https://github.com/marcusva/py-sdl2"
license=('custom:CC0')
depends=('python' 'sdl2')
optdepends=('sdl2_gfx' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf')
_srcpath='eb/08/8a81128ff6ca89019de9771425638bc197a28f40c1e377f03626baa5d729'
source=("https://pypi.python.org/packages/${_srcpath}/PySDL2-$pkgver.tar.gz"{,.asc})
sha256sums=('b52acab5493a77b08c2afee1f385769fc2005f17cfeaf1886eff22dc78da2123'
            '1ecf785e16a62f155cce557e8caa0ce373042c0d7f1993dc98083f32c25dfe1e')
validpgpkeys=('8045642355B844E284606ED2F5645D06D1395E36') # Marcus von Appen

package() {
  cd PySDL2-$pkgver
  python setup.py install --root="$pkgdir"
  install -Dm644 doc/copying.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}