summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9afeb2549280ab0aad3438228b2ceb2260fb810e (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
# Maintainer: Matthijs Tadema <M dot J dot Tadema at protonmail dot com>
pkgname=python-pytris-git
pkgver=r43.21ceb04
pkgrel=1
pkgdesc="A cli tetris game written in python using curses"
arch=('any')
url="https://github.com/mjtadema/pytris/tree/v0.1"
license=('MIT')
groups=()
depends=('python>=3.7' 'python-numpy')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://github.com/mjtadema/pytris.git#branch=master")
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	/usr/bin/env python3 setup.py install --prefix=/usr --root="$pkgdir"
}