summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFilipe Nascimento2021-03-29 15:20:11 -0300
committerFilipe Nascimento2021-03-29 15:20:11 -0300
commit0229d9ae4805d16b4f7eac8b0b9e01d724b67315 (patch)
tree399d5ec9d0291dbfb9ee6fc3e22f7d7c2fdff7b4 /PKGBUILD
parentf8c396c38fce09e17ae8bf52509937038243aa86 (diff)
downloadaur-0229d9ae4805d16b4f7eac8b0b9e01d724b67315.tar.gz
upgpkg: kb-git 0.1.6.r5.g93e4edd-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 25 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8bb3336a4535..b5ef6bb6e117 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,39 @@
# Maintainer: Giuseppe Nebbione <nebbionegiuseppe at gmail dot com>
+# Maintainer: Filipe Nascimento <flipee at tuta dot io>
pkgname=kb-git
-_reponame="kb"
-pkgver=r180.40d361d
-pkgrel=1
+_reponame=kb
+pkgver=0.1.6.r5.g93e4edd
+pkgrel=2
pkgdesc="A command line minimalist knowledge base manager"
-arch=(any)
-url="https://github.com/gnebbia/kb.git"
+arch=('any')
+url="https://github.com/gnebbia/kb"
license=('GPL3')
-depends=()
+depends=('python-attrs' 'python-colored' 'python-gitpython' 'python-setuptools' 'python-toml')
makedepends=('git')
-provides=("kb-git")
-conflicts=("python-kb-git" "python-kb" "kb")
+checkdepends=('python-pytest-cov')
+provides=("kb")
+conflicts=("kb")
+replaces=("python-kb-git")
source=("git+$url")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/${_reponame}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd ${_reponame}
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-package() {
- cd "$srcdir/${_reponame}"
- python setup.py install --root="${pkgdir}/" --optimize=1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+build() {
+ cd ${_reponame}
+ python setup.py build
+}
+
+check() {
+ cd ${_reponame}
+ pytest -v
}
+package() {
+ cd ${_reponame}
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+}