From 707ee09a633c52fa1c2583fd3f88bf3d309e8bfa Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Wed, 2 Nov 2022 23:17:48 +0100 Subject: adopt pkg in repo --- Makefile | 6 +- PKGBUILD | 35 ++++++++++++ docs/_build/man/goboom.1 | 145 ----------------------------------------------- docs/conf.py | 2 +- 4 files changed, 37 insertions(+), 151 deletions(-) create mode 100644 PKGBUILD delete mode 100644 docs/_build/man/goboom.1 diff --git a/Makefile b/Makefile index 9bbc364..e2ba6ea 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,5 @@ SHELL = /bin/bash -VERSION=0.2.3 - -all: - @echo goboom makefile $(VERSION) - @echo \"make build\" to build +VERSION ?= dev .PHONY: build build: diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..79ffe1e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +pkgname=goboom + +pkgver=r24.f607d12 +pkgrel=1 +pkgdesc="A dmenu wrapper" +url="https://src.snilius.com/goboom/" +license=('GPL3') +arch=('x86_64') +depends=('dmenu') +makedepends=() + +source=() +#sha256sums=('') + +prepare() { + ln -snf "$startdir" "$srcdir/$pkgname" +} + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$startdir" + VERSION=$pkgver make build + VERSION=$pkgver make man +} + +package() { + cd "$startdir" + install -D -m755 goboom $pkgdir/usr/bin/goboom + install -D -m755 goboom_run $pkgdir/usr/bin/goboom_run + install -D -m644 docs/_build/man/goboom.1 $pkgdir/usr/share/man/man1/goboom.1 +} diff --git a/docs/_build/man/goboom.1 b/docs/_build/man/goboom.1 deleted file mode 100644 index d3d72ce..0000000 --- a/docs/_build/man/goboom.1 +++ /dev/null @@ -1,145 +0,0 @@ -.\" Man page generated from reStructuredText. -. -.TH "GOBOOM" "1" "Mar 05, 2018" "0.2.2" "goboom" -.SH NAME -goboom \- a dmenu wrapper -. -.nr rst2man-indent-level 0 -. -.de1 rstReportMargin -\\$1 \\n[an-margin] -level \\n[rst2man-indent-level] -level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] -- -\\n[rst2man-indent0] -\\n[rst2man-indent1] -\\n[rst2man-indent2] -.. -.de1 INDENT -.\" .rstReportMargin pre: -. RS \\$1 -. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] -. nr rst2man-indent-level +1 -.\" .rstReportMargin post: -.. -.de UNINDENT -. RE -.\" indent \\n[an-margin] -.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] -.nr rst2man-indent-level -1 -.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] -.in \\n[rst2man-indent\\n[rst2man-indent-level]]u -.. -.SH SYNOPSIS -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -goboom [option] - -goobom_run -.ft P -.fi -.UNINDENT -.UNINDENT -.SH DESCRIPTION -.sp -goboom is wrapper around the dmenu. -goboom is the successor and rewrite of xboomx in Go. -.sp -goboom sorts commands to launch according to their launch frequency. -In other words \- if you launch Chromium and KeePassX all the time \- they will appear in the list of commands first. -.SS Build -.sp -goboom is built using Go 1.5 vendoring and godeps. -.SS Install -.sp -goboom is available via AUR as \fIgoboom\-bin\fP\&. For binary downloads see \fI\%https://bintray.com/atriix/generic/goboom/view\fP\&. -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -sudo cp goboom /usr/bin -sudo cp goboom_run /usr/bin -mkdir \-p ~/.goboom -cp config.ini.default ~/.goboom/config.ini -.ft P -.fi -.UNINDENT -.UNINDENT -.sp -Set your keybinding to \fIgoboom_run\fP\&. -.SH OPTIONS -.INDENT 0.0 -.TP -.B \-\-gc -Run garbage collection of the DB -.TP -.B \-\-launcher -Output launcher command -.TP -.B \-\-post -Update ranking DB -.TP -.B \-\-pre -Generate dmenu in -.TP -.B \-\-stats -View DB stats -.UNINDENT -.SH MIGRATION FROM XBOOMX -.sp -goboom will look for a config file in \fI~/.goboom\fP\&. -You will need to will need to convert you old config file to ini\-format and name it \fIconfig.ini\fP, see the bundled default ini\-file for guidence. -.sp -goboom uses a csv\-file instead sqlite as datastore. -You will need to export your xboomx db as so. -At this point there is not a provided tool to do so, but you can easely export it with something like \fI\%sqlitebrowser\fP <\fBhttp://sqlitebrowser.org/\fP>\&. -.sp -The contents of your exported database should look along the lines of this: -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -name,count -chroimum,13 -keepassx,17 -gimp,4 -.ft P -.fi -.UNINDENT -.UNINDENT -.SH LICENSE -.INDENT 0.0 -.INDENT 3.5 -.sp -.nf -.ft C -goboom \- a dmenu wrapper -Copyright (C) 2016 Victor Häggqvist - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -.ft P -.fi -.UNINDENT -.UNINDENT -.SH AUTHOR -Victor Häggqvist -.SH COPYRIGHT -2016, Victor Häggqvist -.\" Generated by docutils manpage writer. -. diff --git a/docs/conf.py b/docs/conf.py index 20946d4..fe5e066 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -64,7 +64,7 @@ release = '0.1' # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: -- cgit v1.2.3