mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Daniele Cocca <daniele.cocca@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=python-pygame
|
|
pkgver=1.9.1
|
|
pkgrel=4
|
|
pkgdesc="Python game library"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.pygame.org/"
|
|
license=('LGPL')
|
|
depends=('python2' 'sdl_mixer' 'libvorbis' 'sdl_ttf' 'sdl_image' 'smpeg')
|
|
replaces=('pygame')
|
|
provides=('pygame')
|
|
changelog=ChangeLog
|
|
source=(http://pygame.org/ftp/pygame-${pkgver}release.tar.gz 'config.patch')
|
|
md5sums=('1c4cdc708d17c8250a2d78ef997222fc' 'aaa668f3cd710d8604114501ea6a6f48')
|
|
sha1sums=('a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa' '285815e28705d5a2aea53c9d952d35fddf10dd13')
|
|
|
|
build() {
|
|
cd "${srcdir}/pygame-${pkgver}release"
|
|
patch -Np0 -i "${srcdir}/config.patch"
|
|
python2 config.py -auto
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/pygame-${pkgver}release"
|
|
python2 setup.py install --root="${pkgdir}" --prefix=/usr
|
|
|
|
# Copying the examples and tests
|
|
cp -R examples lib/* "${pkgdir}/usr/lib/python2.7/site-packages/pygame"
|
|
cp -R test/* "${pkgdir}/usr/lib/python2.7/site-packages/pygame/tests"
|
|
|
|
# Fixing permissions
|
|
chmod 644 "${pkgdir}"/usr/include/python2.7/pygame/*
|
|
}
|