summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06b3bc3145b9b29b750b8664df4b680d2cd90026 (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
# Maintainer: Joost Bremmer <contact@madeofmagicandwires.online>
# Contributor: Brandon Invergo <brandon@brandoninvergo.com>
pkgname=python2-pyifbabel
pkgver=0.4
pkgrel=3
pkgdesc="A pure-Python implementation of the Treaty of Babel for interactive fiction"
arch=('any')
url="http://pyifbabel.invergo.net"
license=('GPL')
depends=('python2')
source=("http://pyifbabel.invergo.net/download/${pkgname##python2-}-$pkgver.tar.gz"
        "$pkgname.patch")
sha256sums=('38c7f1b3163b6ddd6591b1f8fce028ea983637a9dec8c3626aac21c3c536c30e'
            '3616feaa0adddb21df2dea165f3f5c2dbedabbf043a30f7b2b5b68058f8e0def')


prepare() {
  cd "$srcdir"
  patch -Np1  -i "$pkgname.patch" "${pkgname#python2-}-$pkgver/setup.py"
}
build() {
  cd "$srcdir/${pkgname##python2-}-$pkgver"
  python2 setup.py build
}


package() {
  cd "$srcdir/${pkgname##python2-}-$pkgver"
  python2 setup.py install --root="$pkgdir/"  --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et: