python-pygame: switch to python2-module

Small clean up while I'm here.
This commit is contained in:
Alessio Sergi 2016-10-17 00:30:49 +02:00
parent 590ad334bb
commit 1e509f3db4

View file

@ -1,10 +1,9 @@
# Template file for 'python-pygame' # Template file for 'python-pygame'
pkgname=python-pygame
pkgname="python-pygame" version=1.9.1
version="1.9.1"
revision=1 revision=1
wrksrc="pygame-${version}release" wrksrc="pygame-${version}release"
build_style=python-module build_style=python2-module
short_desc="Collection of python modules for writing games" short_desc="Collection of python modules for writing games"
maintainer="Archaeme <normandy@firemail.cc>" maintainer="Archaeme <normandy@firemail.cc>"
license="LGPL-2.1" license="LGPL-2.1"
@ -15,9 +14,8 @@ hostmakedepends="python-devel smpeg-devel"
makedepends="python-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel smpeg-devel v4l-utils-devel" makedepends="python-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel smpeg-devel v4l-utils-devel"
do_configure() { do_configure() {
python config.py -auto python2 config.py -auto
} }
post_configure() { post_configure() {
sed -i 's/linux\/videodev.h/libv4l1-videodev.h/g' ${wrksrc}/src/camera.h sed -i 's/linux\/videodev.h/libv4l1-videodev.h/g' src/camera.h
} }