summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..652f7a1f757
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = brotab-git
+ pkgdesc = Control your browser's tabs from the command line
+ pkgver = r161.97a289d
+ pkgrel = 1
+ url = https://github.com/balta2ar/brotab
+ arch = any
+ license = custom:MIT
+ checkdepends = python-pytest
+ checkdepends = python-pytest-cov
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python
+ depends = python-flask
+ depends = python-requests
+ depends = python-psutil
+ provides = brotab
+ conflicts = brotab
+ source = git+https://github.com/balta2ar/brotab.git
+ md5sums = SKIP
+
+pkgname = brotab-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..75c0933b4d4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg/
+/src/
+/brotab/
+/*.pkg.tar*
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: