diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | python-colored.patch | 11 |
3 files changed, 26 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = kb-git pkgdesc = A command line minimalist knowledge base manager - pkgver = 0.1.6.r5.g93e4edd - pkgrel = 2 + pkgver = 0.1.7.r6.gfa365a3 + pkgrel = 1 url = https://github.com/gnebbia/kb arch = any license = GPL3 @@ -16,7 +16,8 @@ pkgbase = kb-git conflicts = kb replaces = python-kb-git source = git+https://github.com/gnebbia/kb + source = python-colored.patch md5sums = SKIP + md5sums = 0a91d77f21a9997139d91c53d59e59f1 pkgname = kb-git - @@ -3,8 +3,8 @@ pkgname=kb-git _reponame=kb -pkgver=0.1.6.r5.g93e4edd -pkgrel=2 +pkgver=0.1.7.r6.gfa365a3 +pkgrel=1 pkgdesc="A command line minimalist knowledge base manager" arch=('any') url="https://github.com/gnebbia/kb" @@ -15,14 +15,21 @@ checkdepends=('python-pytest-cov') provides=("kb") conflicts=("kb") replaces=("python-kb-git") -source=("git+$url") -md5sums=('SKIP') +source=("git+$url" + "python-colored.patch") +md5sums=('SKIP' + '0a91d77f21a9997139d91c53d59e59f1') pkgver() { cd ${_reponame} git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd ${_reponame} + patch -p1 < ../python-colored.patch +} + build() { cd ${_reponame} python setup.py build diff --git a/python-colored.patch b/python-colored.patch new file mode 100644 index 000000000000..b2546cd3fa6c --- /dev/null +++ b/python-colored.patch @@ -0,0 +1,11 @@ +diff --git a/kb/printer/style.py b/kb/printer/style.py +index e0fd752..2bc7bf5 100644 +--- a/kb/printer/style.py ++++ b/kb/printer/style.py +@@ -17,5 +17,5 @@ from kb.entities.artifact import Artifact + + ALT_BGROUND = styler.set_bg('#303030') + BOLD = styler.set_style('bold') +-UND = styler.set_style('underlined') ++UND = styler.set_style('underline') + RESET = styler.reset() |