summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a256398e92e409f81429ddde70bc03e77307206 (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
35
# Maintainer: Batuhan Baserdem <lastname dot firstname at gmail>

pkgname='python-bugsnag-git'
provides=("python-bugsnag")
conflicts=("python-bugsnag")
pkgver=3.6.0.r0.g017c300
pkgrel=1
pkgdesc='Automatic error monitoring for django, flask, etc.'
arch=('any')
url='https://www.bugsnag.com/platforms/python-error-reporting'
license=('MIT')
source=('git+https://github.com/bugsnag/bugsnag-python.git')
makedepends=('git' 'python-setuptools')
depends=(
    'python'
    'python-webob'
    'python-six>=1.9'
    'python-six<2')
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/bugsnag-python"
    git describe --long --tags | sed 's|\([^-]*-g\)|r\1|;s|-|.|g;s|^v||g'
}

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

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