summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa458e48e203f5f439309aca2951a1271854bfa0 (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
# Maintainer: Anthony VB <anthonyvbop AT gmail DOT com>

pkgname=python-blinkstick-git
_name=blinkstick
pkgver=20200211
pkgrel=1
pkgdesc="BlinkStick Python interface to control devices connected to the computer."

url='http://www.blinkstick.com'
arch=('any')
license=('custom')
depends=('python-pyusb')

source=("$_name::git+https://github.com/arvydas/blinkstick-python.git")
sha256sums=('SKIP')


pkgver() {
  cd "${srcdir}/${_name}/"
  git log -1 --format='%cd.%h' --date=short | tr -d -
}

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

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