summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36aa1dd56f69150c0ed33549b22dd85b47cfc58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Contributor: Kyle Keen <keenerd@gmail.com>
pkgname=summon
pkgver=1.8.9
pkgrel=1
pkgdesc="Rapid prototyping of 2D visualizations for Python."
arch=('i686' 'x86_64')
url="http://people.csail.mit.edu/rasmus/summon/index.shtml"
license=('LGPL')
depends=('python2' 'sdl' 'glut')
source=(http://people.csail.mit.edu/rasmus/$pkgname/download/$pkgname-$pkgver.tar.gz)
md5sums=('118a77ee431535dfe97bbd425b6dc09a')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/env python|/usr/bin/env python2|'
  python2 setup.py build
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py install --prefix=/usr --root="$pkgdir"
}