summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24158bfbcabc80aa8814ae17d8d0464eb62303a9 (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
# Maintainer: Mika Cousin <mika dot cousin at gmail dot com>

pkgname=python-sacn
pkgver=1.10.0
pkgrel=1
pkgdesc="sACN / E1.31 module for easy handling of DMX data over ethernet"
arch=(any)
url="https://www.github.com/Hundemeier/sacn"
license=(MIT)
depends=("python" "python-pytest")
makedepends=("python-setuptools")
source=("sacn-$pkgver.tar.gz::https://github.com/Hundemeier/sacn/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=("5fdcdbc41cec82d55a18b90f4c0e324bd02856e4b47dcce06d1bb262cb1d5487")

check() {
  cd "$srcdir/sacn-$pkgver"
  pytest
}

build() {
  cd "$srcdir/sacn-$pkgver"
  python setup.py build
}

package() {
  cd "$srcdir/sacn-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}