summaryrefslogtreecommitdiff
path: root/pcr/python2-renpy/PKGBUILD
blob: 4e121a4d9623a9f209f1e7b0cc9cd7b76553499a (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
48
# Maintainer: André Silva <emulatorman@parabola.nu>
# Maintainer: Márcio Silva <coadde@parabola.nu>

_pkgname=renpy
pkgname=python2-renpy
pkgver=6.16.2
pkgrel=1
pkgdesc="Platform-dependant Ren'Py libraries."
arch=(
  mips64el
  x86_64
  i686
)
license=MIT
url=http://www.$_pkgname.org/
depends=(
  ffmpeg
  fribidi
  glew
  python2-pygame=1.9.1
)
makedepends='python2>=2.7'
provides=("python-$_pkgname=$pkgver")
conflicts=(
  python-$_pkgname
  "$_pkgname<$pkgver"
  ${_pkgname}64
  $_pkgname-bin
)
renplaces=python-$_pkgname
source=http://www.$_pkgname.org/dl/$pkgver/$_pkgname-$pkgver-source.tar.bz2
sha512sums=fc3b40f01f2d1e820a05f90a2d85e42986aaa4840e506d18ea76a78527d2f98ca6cf832ebde3e1f996b94f4ce4b175856da913f3de7f1a9db48aba0eea84b52d

build() {
  cd $srcdir/$_pkgname-$pkgver-source

  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|;' module/setup.py

  python2 module/setup.py build
}

package(){
  cd $srcdir/$_pkgname-$pkgver-source

  msg "install $pkgname"
  python2 module/setup.py install --root=$pkgdir/ --prefix=/usr --optimize=1
  install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}