-
-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathPKGBUILD
More file actions
28 lines (24 loc) · 749 Bytes
/
Copy pathPKGBUILD
File metadata and controls
28 lines (24 loc) · 749 Bytes
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
# Maintainer: Giuseppe Nebbione <nebbionegiuseppe at gmail dot com>
pkgname=kb-git
_reponame="kb"
pkgver=r180.40d361d
pkgrel=1
pkgdesc="A command line minimalist knowledge base manager"
arch=(any)
url="https://github.com/gnebbia/kb.git"
license=('GPL3')
depends=('python' 'python-colored' 'python-gitpython' 'python-toml' 'python-attrs')
makedepends=('git')
provides=("kb-git")
conflicts=("python-kb-git" "python-kb" "kb")
source=("git+$url")
md5sums=('')
pkgver() {
cd "$srcdir/${_reponame}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${_reponame}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}