summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e7425719f223bcc1b9228bf82d19beabfdcd89e (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
# Maintainer: jmcb <joelsgp@protonmail.com>

pkgname=python-picotool-git
_name=picotool
pkgver=r199.49808e5
pkgrel=1
pkgdesc="Tools and Python libraries for manipulating Pico-8 game files."
arch=('any')
url="https://github.com/dansanderson/picotool"
license=('MIT')
depends=('python' 'python-pypng')
makedepends=('git' 'python-pytest-runner')
checkdepends=('flake8' 'mypy' 'python-pytest')
optdepends=()
provides=("${pkgname%-git}" 'p8tool')
conflicts=("${pkgname%-git}")
source=("git+https://github.com/dansanderson/picotool.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_name"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

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

# https://github.com/dansanderson/picotool/issues/110
# check() {
#   cd "$_name"
#   pytest
# }

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