summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Reiser2021-01-04 14:28:12 +0100
committerSimon Reiser2021-01-04 14:28:12 +0100
commitc13b94ae1e081350cdd4a123d0b7bf90149ff5e0 (patch)
tree77ada7c0212c3fbfb13dfa5d924cc5c49acb14c6 /PKGBUILD
downloadaur-c13b94ae1e081350cdd4a123d0b7bf90149ff5e0.tar.gz
genesis
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ad5e33390f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# 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=r161.97a289d
+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}"
+ python 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: