summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5247b303856a326fc286f710674e68900090d729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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.7
pkgrel=2
pkgdesc="Python ctypes wrapper around SDL2"
arch=("any")
url="https://github.com/marcusva/${pkgname/python-py/py-}"
license=("custom:CC0")
depends=("python" "sdl2")
optdepends=("sdl2_gfx" "sdl2_image" "sdl2_mixer" "sdl2_ttf")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/marcusva/${pkgname/python-py/py-}/archive/rel_${pkgver//./_}.tar.gz")
sha256sums=("73931c4e78339ac3b91da626dc65681b65e0a6b8e06b5fcf13f9352635b08691")

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