summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b92dd524a38edd9dee65587e0daf06c316f4f32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Dario Ostuni <another.code.996@gmail.com>
pkgname=python-gradergen-git
pkgver=r174.4f2d491
pkgrel=1
pkgdesc="A tool meant to generate graders and templates files of olympic problems"
arch=('any')
url="https://github.com/walypala23/gradergen"
license=('MIT')
depends=('python' 'python-yaml')
provides=('python-gradergen')
options=(!emptydirs)
source=("git+https://github.com/walypala23/gradergen.git")
sha1sums=('SKIP')

pkgver() {
    cd "$srcdir/gradergen"
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/gradergen"
    python setup.py install --root="$pkgdir/" --optimize=1
}