summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71e82a67d61e9505843014cd9818d2e64f5db63b (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
pkgname=python-serpent-ai-git
_module='SerpentAI'
pkgver=r210.973af1a
pkgrel=1
pkgdesc="Game Agent Framework. Helping you create AIs / Bots to play any game you own!"
url="https://github.com/greyltc/SerpentAI"
depends=(python xorg-xwininfo xdotool opencv python-spritex python-scikit-image python-xlib python-numpy python-scipy python-h5py-openmpi python-scikit-learn tesseract tesseract-data-eng python-redis redis python-aioredis python-kivy python-pyautogui python-autobahn python-editdistance python-offshoot-git python-sneakysnek-git python-mss python-tesserocr cython)
makedepends=(python-setuptools)
license=('MIT')
arch=('any')
source=("git://github.com/greyltc/SerpentAI.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_module"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_module}"
  python setup.py build
}

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