summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31f9670f06186b90dd293d9d76d4691190bdc878 (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
33
34
35
36
37
38
39
40
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Bjorn Neergaard (neersighted) <bjorn@neersighted.com>
# Contributor: Elkin Cruz <agnelkincc@gmail.com>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=shedskin-git
pkgver=0.9.9.r91.gd61b0e42
pkgrel=1
pkgdesc='Experimental (restricted) Python-to-C++ compiler (development version)'
url='https://github.com/shedskin/shedskin'
license=('GPL-3.0-only' 'MIT' 'BSD-3-Clause')
source=(git+https://github.com/shedskin/shedskin.git)
sha256sums=('SKIP')
arch=('any')
depends=('pcre' 'gc' 'python')
makedepends=('git' 'python-setuptools')
conflicts=('shedskin')
provides=('shedskin')

pkgver() {
  cd shedskin

  # Get the version number.
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd shedskin

  # Build it!
  python setup.py build
}

package() {
  cd shedskin

  # Install the program.
  python setup.py install --root="$pkgdir" --optimize=1
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}