void-packages/srcpkgs/python-pygame/template

29 lines
931 B
Bash

# Template file for 'python-pygame'
pkgname=python-pygame
version=1.9.3
revision=2
wrksrc="pygame-${version}"
build_style=python-module
pycompile_module="pygame"
hostmakedepends="python-setuptools python3-setuptools SDL_mixer-devel
SDL_image-devel SDL_ttf-devel libjpeg-turbo-devel portmidi-devel"
makedepends="python-devel python3-devel SDL_mixer-devel SDL_image-devel
SDL_ttf-devel libjpeg-turbo-devel portmidi-devel"
short_desc="Collection of Python modules for writing games (Python2)"
maintainer="Archaeme <normandy@firemail.cc>"
license="LGPL-2.1"
homepage="https://www.pygame.org/"
distfiles="${PYPI_SITE}/p/pygame/pygame-${version}.tar.gz"
checksum=751021819bdc0cbe5cbd51904abb6ff9e9aee5b0e8955af02284d0e77d6c9ec2
export PORTMIDI_INC_PORTTIME=1
python3-pygame_package() {
pycompile_module="pygame"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vmove usr/include/python3*
}
}