summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff44019376f70772426633d24fd2b6c6d55a4100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=python-cs1graphics
pkgver=1.2
pkgrel=2
pkgdesc="Simple python2/python3 graphics library."
arch=('any')
url="http://www.cs1graphics.org/"
license=('GPL3')
depends=('tk')
optdepends=('python: for python3 support'
            'python2: for python2 support')
source=(http://www.cs1graphics.org/download/v$pkgver/$pkgname.py)
md5sums=('2abf99242b7fd77990ad5a80afad6ac1')

package() {
  cd "$srcdir"
  # link together instead?  use a real python setup?
  install -Dm644 cs1graphics.py "$pkgdir/usr/lib/python2.7/site-packages/$pkgname/__init__.py"
  install -Dm644 cs1graphics.py "$pkgdir/usr/lib/python3.2/site-packages/$pkgname/__init__.py"
}