summaryrefslogtreecommitdiff
path: root/pcr/python2-renpy/PKGBUILD
blob: a7ff17837c1720d766c537b4c01293755fbd8605 (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@lavabit.com>
# Maintainer: Márcio Silva <coadde@lavabit.com>

_pkgname=renpy
pkgname=python2-renpy
pkgver=6.15.7
pkgrel=2
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=d79b1d6b931f281ff208b8ece3889c116ceb05c58fe115e9f7f470788e74e63cfeb3df4f804b4a37a4f1da6ba194c883023808fafc8e8beddf864424958204e6

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
}