summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a12a816c2bcdee17e555d90b3b2b145fd0b3d3ba (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
# Maintainer: Oleg Plakhotniuk <olegus8@gmail.com>
pkgname=toothris
pkgver=1.0.1
pkgrel=1
pkgdesc="Smooth Tetris clone with a few surprises."
arch=('any')
url="http://www.toothris.org"
license=('GPL3')
depends=('python2-pygame' 'python2-opengl' 'stackless-python2' \
         'python2-rabbyt')
makedepends=('git' 'python2-pygame')
source=("git+https://github.com/toothris/toothris#tag=${pkgver}"
        "toothris-run")
md5sums=('SKIP'
         '6e159bf700c3a4d48d4bbc6ca8a16fa7')

build() {
    cd "$srcdir/$pkgname/src"
    python2 packres.py
    python2 -m compileall .
}

package() {
    cd "$srcdir/$pkgname"
    mkdir -p "$pkgdir"/usr/{bin,lib/toothris}
    cp "$srcdir/toothris-run" "$pkgdir/usr/bin/toothris"
    cp -r src/*.pyc "$pkgdir/usr/lib/toothris"
}