summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8be513b7b74f97210eba4a9454ed66955f502069 (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: Marcus Hoffmann <bubu@bubu1.eu>
# Contributor: Sonic-Y3k <sonic.y3k@googlemail.com>

pkgname=python-user-agents
pkgver=2.2
_pkgver=${pkgver}.0
pkgrel=1
pkgdesc="A library to identify devices (phones, tablets) and their capabilities by parsing (browser/HTTP) user agent strings"
arch=('any')
url="https://pypi.python.org/pypi/user-agents"
depends=('python' 'python-pyaml' 'python-ua-parser')
license=('MIT')
source=("https://github.com/selwin/python-user-agents/archive/v${_pkgver}.tar.gz")
sha256sums=('25ad850fe9cfc8e0e2a8e6b054943006b33317e34a36c6c9996a2f489acff879')

build() {
  cd $srcdir/${pkgname}-$_pkgver
  python setup.py build
}

check() {
  cd $srcdir/${pkgname}-$_pkgver 
  PYHTONPATH=. python -m unittest
}

package() {
  cd "$srcdir/${pkgname}-$_pkgver"
  python setup.py install --root "${pkgdir}" --optimize=1 --skip-build
}