# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Chris Billington <chrisjbillington@gmail.com>
# Contributor: Étienne Deparis <etienne@depar.is>

pkgname=python-inotify-simple
pkgver=1.3.5
pkgrel=9
pkgdesc='A simple Python wrapper around inotify'
arch=(any)
url=https://github.com/chrisjbillington/inotify_simple
license=(BSD)
depends=(python 'python>=3.13' 'python<3.15')
makedepends=(
  git
  python-setuptools
)
_tag=2a8f8305125c396896835f0ea4593477d007ff4b
source=(git+https://github.com/chrisjbillington/inotify_simple.git#tag=${_tag})
b2sums=('fb6de1dc0ad429d5264dc4c31f8670a82e4065dd00c8b1dcd3488bff5eec9b44099de52be43486dacae420c85197e4a6630ab3de2731e1d16ab2a617c402d162')

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

package() {
  cd inotify_simple
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-inotify-simple/
}

# vim: ts=2 sw=2 et:
