1. Загружаем tarball python-pygame-hg.tar.gz с сайта:
https://aur.archlinux.org/packages/python-pygame-hg/
2. Распакуем архив в текущую папку:
tar -xvf python-pygame-hg.tar.gz
или в другую папку:
tar -C /myfolder -xvf python-pygame-hg.tar.gz
3. Перейдем в каталог:
cd python-pygame-hg
4. Смотрим зависимости:
$ more .AURINFO
pkgbase = python-pygame-hg
pkgdesc = Python game library
pkgver = r3349.823708f24a3a
pkgrel = 1
url = http://pygame.org/
arch = i686
arch = x86_64
license = LGPL
makedepends = mercurial
makedepends = python-setuptools
depends = python
depends = libjpeg-turbo
depends = sdl_ttf
depends = sdl_image
depends = sdl_mixer
depends = portmidi
provides = python3-pygame
provides = python3-pygame-svn
conflicts = python3-pygame
conflicts = python3-pygame-svn
replaces = python3-pygame-svn
source = python-pygame-hg::hg+https://bitbucket.org/pygame/pygame
pkgname = python-pygame-hg
$
$ more PKGBUILD
# Maintainer: speps
pkgname=python-pygame-hg
pkgver=r3349.823708f24a3a
pkgrel=1
pkgdesc="Python game library"
arch=(i686 x86_64)
url="http://pygame.org/"
license=('LGPL')
depends=('python' 'libjpeg-turbo' 'sdl_ttf'
'sdl_image' 'sdl_mixer' 'portmidi')
makedepends=('mercurial' 'python-setuptools')
provides=('python3-pygame' 'python3-pygame-svn')
conflicts=('python3-pygame' 'python3-pygame-svn')
replaces=('python3-pygame-svn')
source=("$pkgname::hg+https://bitbucket.org/pygame/pygame")
md5sums=('SKIP')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
build() {
cd $pkgname
python config.py -auto
python setup.py build
}
package() {
cd $pkgname
python setup.py install --prefix=/usr \
--root="$pkgdir/"
}
# vim:set ts=2 sw=2 et:
$
# Maintainer: speps
pkgname=python-pygame-hg
pkgver=r3349.823708f24a3a
pkgrel=1
pkgdesc="Python game library"
arch=(i686 x86_64)
url="http://pygame.org/"
license=('LGPL')
depends=('python' 'libjpeg-turbo' 'sdl_ttf'
'sdl_image' 'sdl_mixer' 'portmidi')
makedepends=('mercurial' 'python-setuptools')
provides=('python3-pygame' 'python3-pygame-svn')
conflicts=('python3-pygame' 'python3-pygame-svn')
replaces=('python3-pygame-svn')
source=("$pkgname::hg+https://bitbucket.org/pygame/pygame")
md5sums=('SKIP')
pkgver() {
cd $pkgname
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
build() {
cd $pkgname
python config.py -auto
python setup.py build
}
package() {
cd $pkgname
python setup.py install --prefix=/usr \
--root="$pkgdir/"
}
# vim:set ts=2 sw=2 et:
$
5. Устанавливаем зависимые пакеты:
$ sudo pacman -S mercurial python-setuptools libjpeg-turbo sdl_ttf sdl_image sdl_mixer portmidi
6. Устанавливаем pygame:
$ makepkg
$ sudo pacman -U *.pkg.tar.xz
7. Проверяем:
$ python
Python 3.4.1 (default, May 19 2014, 17:23:49)
[GCC 4.9.0 20140507 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>>
Комментариев нет:
Отправить комментарий