blob: f0ad794558c6539694bf98043ac3b5c71d709233 (
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=r650.b267848
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')
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
}
|