blob: 707ba7d227a0d50837031359e7bdbdf2a1042307 (
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
40
41
42
43
44
45
46
47
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Cravix <dr.neemous@gmail.com>
pkgname=python-pygame-sdl2
_dir=pygame_sdl2
pkgver=8.4.0.25071206
pkgrel=1
epoch=1
pkgdesc='Reimplementation of portions of the pygame API using SDL2'
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/renpy/${_dir}"
license=(
'LGPL-2.1-or-later'
'Zlib'
)
depends=(
'python'
'sdl2_image'
'sdl2_mixer'
'sdl2_ttf'
)
makedepends=(
'cython'
'git'
'python-setuptools'
)
source=("git+${url}.git#tag=renpy-${pkgver}")
b2sums=('160e1d0f8e46b40ffd8a16a4457ced24fee3658fe98229ef90a86e442e5f93c813eb8a416c70753cd0673fe53a1279d472eb61e075607ea02e83297133fa60a5')
prepare() {
cd "$_dir"
sed -i "s|headers_dir = pathlib.Path(sysconfig.get_paths()\\['include'\\]) / \"pygame_sdl2\"|headers_dir = pathlib.Path(\"${srcdir}/includes\")|" 'setup.py'
}
build() {
cd "$_dir"
python setup.py build
}
package() {
cd "$_dir"
python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1 --skip-build
install -dm755 "$pkgdir/usr/include/pygame_sdl2"
cp -rf "${srcdir}/includes"/* "$pkgdir/usr/include/pygame_sdl2"
install -Dm 644 'COPYING.ZLIB' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|