# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=flashgbx
pkgver=4.6
pkgrel=1
pkgdesc='Reads and writes Game Boy and Game Boy Advance cartridge data'
arch=(any)
url=https://github.com/lesserkuma/FlashGBX
license=(GPL3)
depends=(
  pyside6
  python-dateutil
  python-pillow
  python-pyserial
  python-requests
  python-setuptools
)
makedepends=(git)
_tag=d42b7e74a7a53abd7ec7030fe3a8c2c65e50bff3
source=(git+https://github.com/lesserkuma/FlashGBX.git#tag=${_tag})
sha256sums=('999650367ea08e4ec90e9cfd465cdaeee6a8a2dda1ad446bcb56ebf8622aa4a2')

pkgver() {
  cd FlashGBX
  git describe --tags
}

build() {
  cd FlashGBX
  python setup.py build
}

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

# vim: ts=2 sw=2 et:
