summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a26627db5b1637c281ba1c777e5f1c54f93b70d6 (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
# Maintainer: Adam Goldsmith <adam@adamgoldsmith.name>

pkgname=python2-libpebble2-git
pkgver=v0.0.27
pkgrel=1
pkgdesc="The library portion of the successor to libpebble, a python library for interacting with Pebble devices."
arch=('i386' 'x86_64')
license=('MIT')
url="https://github.com/pebble/libpebble2"
depends=('python2'
         'python2-six'
         'python2-websocket-client'
         'python2-wsgiref'
         'python2-backports.ssl_match_hostname')
makedepends=('python2-setuptools')
provides=("python2-libpebble2")
conflicts=("python2-libpebble2")
options=(!emptydirs)
source=('git+https://github.com/pebble/libpebble2.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/libpebble2"
  git describe --tags | sed 's/-/./g'
}

package() {
  cd "$srcdir/libpebble2"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}