blob: 2256d96bc9920885a999938f834df3d3d6adb022 (
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
38
39
40
41
42
43
44
|
# Maintainer: Gabriele Fulgaro <gabriele.fulgaro@gmail.com>
# Contributor: wangjiezhe <wangjiezhe AT yandex DOT com>
# Contributor: Shengyu Zhang <la@archlinuxcn.org>
_pkgname=brotab
pkgname="${_pkgname}-git"
pkgver=r196.9d21332
pkgrel=1
pkgdesc="Control your browser's tabs from the command line"
arch=('any')
url="https://github.com/balta2ar/${_pkgname}"
license=('custom:MIT')
depends=('python' 'python-flask' 'python-requests' 'python-psutil')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
sed -i '/^import pip$/d' setup.py || :
sed -i 's/==.*//' requirements/*.txt
python3 setup.py build
}
check() {
cd "${srcdir}/${_pkgname}"
pytest
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|