summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0118758aff55eb29b38613069c2820cea2cd6457 (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
33
34
# Maintainer: Angrysoft Sebastian Zwierzchowski <sebastian.zwierzchowski@gmail.com>

pkgname=python-pyiot-git
_realname=pyiot
pkgver=v0.1.r143.gcef693c
pkgrel=1
pkgdesc="Python library for IOT devices"
url="https://bitbucket.org/angrysoft/pyiot"
license=('Apache 2.0')
arch=('any')
depends=('python-setuptools' 'python-pycryptodomex')
makedepends=('git' 'python-setuptools')
source=("${_realname}::git+https://bitbucket.org/angrysoft/pyiot/src/master/")
md5sums=("SKIP")
noextract=()

pkgver() {
  cd ${_realname}
  git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd ${_realname}
  python setup.py build
}

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

  #install -D -m644 "LICENSE" \
  #  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}