summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 492df5b699a1731d2b7ed0e781ce9a4c62edcc23 (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
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>

pkgname=shedskin
pkgver=0.9.10
pkgrel=1
pkgdesc='Python to C++ compiler'
arch=('any')
url='https://shedskin.github.io/'
license=('GPL-3.0-only')
depends=('pcre' 'gc' 'python')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/shedskin/shedskin.git#tag=v$pkgver")
sha256sums=('SKIP')

prepare() {
  sed -i 's:bin/python:usr/bin/python:' "$pkgname/scripts/$pkgname"
}

build() {
  cd "$pkgname"

  python setup.py build
}
package() {
  cd "$pkgname"

  python setup.py install --root="$pkgdir" --optimize=1
}