summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e6bf30c7ed1e865ddd3a2c9bc369e32eb839d3e (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
36
37
# Maintainer: Thorben Günther <echo YWRtaW5AeGVucm94Lm5ldAo= | base64 -d>

pkgname=httpobs-git
_pkgname=httpobs
pkgver=r657.92641c6
pkgrel=1
pkgdesc='A command line tool to scan your website'
arch=('any')
url='https://github.com/mozilla/http-observatory'
license=('custom:MPL2')
depends=('python-celery' 'python-beautifulsoup4' 'python-publicsuffixlist')
makedepends=('python-setuptools' 'git')
provides=('httpobs')
conflicts=('httpobs')
source=(
    "$_pkgname::git+https://github.com/mozilla/http-observatory"
)
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    (   
        set -o pipefail
        git describe --long 2> /dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
            printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

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

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