Skip to content

Commit

Permalink
Updated docs and added PKGBUILDs
Browse files Browse the repository at this point in the history
  • Loading branch information
gnebbia committed Mar 26, 2021
1 parent 40d361d commit 7fde770
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 48 deletions.
17 changes: 17 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pkgbase = kb-git
pkgdesc = A command line minimalist knowledge base manager
pkgver = 0
pkgrel = 1
url = https://github.com/gnebbia/kb.git
arch = any
license = GPL3
makedepends = git
provides = kb-git
conflicts = python-kb-git
conflicts = python-kb
conflicts = kb
source = git+https://github.com/gnebbia/kb.git
md5sums = SKIP

pkgname = kb-git

36 changes: 19 additions & 17 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# Maintainer: Giuseppe Nebbione <giuseppenebbione at gmail dot com>
# Maintainer: Giuseppe Nebbione <nebbionegiuseppe at gmail dot com>

pkgbase='kb'
pkgname=('kb')
_module='kb-manager'
pkgver='0.1.6'
pkgname=kb-git
_reponame="kb"
pkgver=r180.40d361d
pkgrel=1
pkgdesc="A command line minimalist knowledge base manager"
url="https://github.com/gnebbia/kb"
depends=('python')
makedepends=('python-setuptools')
arch=(any)
url="https://github.com/gnebbia/kb.git"
license=('GPL3')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('78e14f6eef30a4742925cc75ba9a5509c032ae42e73e26582cd7ed91794f41df')
depends=()
makedepends=('git')
provides=("kb-git")
conflicts=("python-kb-git" "python-kb" "kb")
source=("git+$url")
md5sums=('SKIP')

build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
pkgver() {
cd "$srcdir/${_reponame}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
cd "$srcdir/${_reponame}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

26 changes: 26 additions & 0 deletions PKGBUILD.stable
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: Giuseppe Nebbione <giuseppenebbione at gmail dot com>

pkgbase='kb'
pkgname=('kb')
_module='kb-manager'
pkgver='0.1.6'
pkgrel=1
pkgdesc="A command line minimalist knowledge base manager"
url="https://github.com/gnebbia/kb"
depends=('python')
makedepends=('python-setuptools')
license=('GPL3')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('c8e79e856066e271f3d7196d8e0d1db297e181a125b521f5943f60f3f3f01e0a')

build() {
cd "${srcdir}/${_module}-${pkgver}"
python setup.py build
}

package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
28 changes: 0 additions & 28 deletions PKGBUILD_GIT

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,16 @@ brew upgrade gnebbia/kb/kb

### Installation from AUR

Arch Linux users can install [python-kb](https://aur.archlinux.org/packages/python-kb) or [python-kb-git](https://aur.archlinux.org/packages/python-kb-git) with their favorite [AUR Helper](https://wiki.archlinux.org/index.php/AUR_helpers).
Arch Linux users can install [kb](https://aur.archlinux.org/packages/kb) or [kb-git](https://aur.archlinux.org/packages/kb-git) with their favorite [AUR Helper](https://wiki.archlinux.org/index.php/AUR_helpers).

Stable:
```sh
yay -S python-kb
yay -S kb
```

Dev:
```sh
yay -S python-kb-git
yay -S kb-git
```

### Notes for Windows users
Expand Down

0 comments on commit 7fde770

Please sign in to comment.