Merge branch 'werdahias/debian/latest' into debian/latest
Robin Gustafsson
1 year, 5 months ago
3 | 3 |
CFLAGS += -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic $(shell $(PKG_CONFIG) --cflags ncursesw panelw)
|
4 | 4 |
LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw")
|
5 | 5 |
PREFIX = /usr/local
|
|
6 |
MANDIR = $(PREFIX)/share/man
|
6 | 7 |
|
7 | 8 |
cbonsai: cbonsai.c
|
8 | 9 |
|
9 | |
install: cbonsai
|
|
10 |
cbonsai.1: cbonsai.scd
|
|
11 |
scdoc <$< >$@
|
|
12 |
|
|
13 |
install: cbonsai cbonsai.1
|
10 | 14 |
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
15 |
mkdir -p $(DESTDIR)$(MANDIR)/man1
|
11 | 16 |
install -m 0755 cbonsai $(DESTDIR)$(PREFIX)/bin/cbonsai
|
|
17 |
install -m 0644 cbonsai.1 $(DESTDIR)$(MANDIR)/man1/cbonsai.1
|
12 | 18 |
|
13 | 19 |
uninstall:
|
14 | 20 |
rm -f $(DESTDIR)$(PREFIX)/bin/cbonsai
|
|
21 |
rm -f $(DESTDIR)$(MANDIR)/man1/cbonsai.1
|
15 | 22 |
|
16 | 23 |
clean:
|
17 | 24 |
rm -f cbonsai
|
|
25 |
rm -f cbonsai.1
|
18 | 26 |
|
19 | 27 |
.PHONY: install uninstall clean
|
18 | 18 |
<img src="https://repology.org/badge/vertical-allrepos/cbonsai.svg" alt="Packaging status" align="right">
|
19 | 19 |
</a>
|
20 | 20 |
|
21 | |
### Arch Linux (AUR)
|
|
21 |
`cbonsai` is available in multiple repositories. Check the repology chart to the right to see if `cbonsai` is packaged for your system. A big thank you to all the people who packaged `cbonsai`!
|
22 | 22 |
|
23 | |
Nicholas Boyd Isacsson has kindly packaged `cbonsai` in the [AUR](https://aur.archlinux.org/packages/cbonsai/).
|
|
23 |
If no package exists for your system/distribution, you'll have to use the [manual](https://gitlab.com/jallbrit/cbonsai#manual) install instructions. Below are some more specific instructions for some distributions.
|
24 | 24 |
|
25 | 25 |
### Debian-based
|
26 | 26 |
|
27 | |
Robin Gustafsson has kindly packaged `cbonsai` as a `.deb` file over in [this repository](https://gitlab.com/rgson/debian_cbonsai/-/packages).
|
|
27 |
`cbonsai` is only available in the Debian Unstable repository. However, if you're not on unstable, Robin Gustafsson has kindly packaged `cbonsai` as a `.deb` file over in [this repository](https://gitlab.com/rgson/debian_cbonsai/-/packages).
|
|
28 |
|
|
29 |
### Fedora
|
|
30 |
|
|
31 |
Mohammad Kefah has kindly packaged `cbonsai` in the [Fedora copr](https://copr.fedorainfracloud.org/), which is "similar to what the AUR is to Arch". On Fedora, it can be installed like so:
|
|
32 |
|
|
33 |
```bash
|
|
34 |
sudo dnf copr enable keefle/cbonsai
|
|
35 |
sudo dnf install cbonsai
|
|
36 |
```
|
28 | 37 |
|
29 | 38 |
### MacOS
|
30 | 39 |
|
|
36 | 45 |
```
|
37 | 46 |
|
38 | 47 |
You may need to follow these instructions before running `make install`.
|
|
48 |
|
|
49 |
If you are having trouble installing on MacOS, try reading [this issue](https://gitlab.com/jallbrit/cbonsai/-/issues/10).
|
|
50 |
|
|
51 |
#### MacPorts
|
|
52 |
|
|
53 |
On macOS, you may also install `cbonsai` using [MacPorts](https://www.macports.org). Simply install MacPorts, then issue the following commands:
|
|
54 |
|
|
55 |
```bash
|
|
56 |
sudo port selfupdate
|
|
57 |
sudo port install cbonsai
|
|
58 |
```
|
39 | 59 |
|
40 | 60 |
### Manual
|
41 | 61 |
|
|
140 | 160 |
|
141 | 161 |
## Inspiration
|
142 | 162 |
|
143 | |
This project wouldn't be here if it weren't for its *roots*! `cbonsai` is a newer version of [bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh), which was written in `bash` and was itself a port of [this bonsai tree generator](https://avelican.github.io/bonsai/) written in `javascript`.
|
|
163 |
This project wouldn't be here if it weren't for its *roots*! `cbonsai` is a newer version of [bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh), which was written in `bash` and was itself a port of [this bonsai tree generator](https://avelican.github.io/bonsai/) written in `javascript`.
|
|
0 |
cbonsai(1)
|
|
1 |
|
|
2 |
# NAME
|
|
3 |
|
|
4 |
cbonsai - grow bonsai trees in your terminal
|
|
5 |
|
|
6 |
# SYNOPSIS
|
|
7 |
|
|
8 |
cbonsai [OPTION]...
|
|
9 |
|
|
10 |
# DESCRIPTION
|
|
11 |
|
|
12 |
cbonsai is a beautifully random bonsai tree generator.
|
|
13 |
|
|
14 |
# OPTIONS
|
|
15 |
|
|
16 |
*-l*, *--live*
|
|
17 |
live mode: show each step of growth
|
|
18 |
|
|
19 |
*-t*, *--time*=_TIME_
|
|
20 |
in live mode, wait TIME secs between steps of growth (must be larger than 0) [default: 0.03]
|
|
21 |
|
|
22 |
*-i*, *--infinite*
|
|
23 |
infinite mode: keep growing trees
|
|
24 |
|
|
25 |
*-w*, *--wait*=_TIME_
|
|
26 |
in infinite mode, wait TIME between each tree generation [default: 4.00]
|
|
27 |
|
|
28 |
*-S*, *--screensaver*
|
|
29 |
screensaver mode; equivalent to -liWC and quit on any keypress
|
|
30 |
|
|
31 |
*-m*, *--message*=_STR_
|
|
32 |
attach message next to the tree
|
|
33 |
|
|
34 |
*-b*, *--base*=_INT_
|
|
35 |
ascii-art plant base to use, 0 is none
|
|
36 |
|
|
37 |
*-c*, *--leaf*=_LIST_
|
|
38 |
list of comma-delimited strings randomly chosen for leaves
|
|
39 |
|
|
40 |
*-M*, *--multiplier*=_INT_
|
|
41 |
branch multiplier; higher -> more branching (0-20) [default: 5]
|
|
42 |
|
|
43 |
*-L*, *--life*=_INT_
|
|
44 |
life; higher -> more growth (0-200) [default: 32]
|
|
45 |
|
|
46 |
*-p*, *--print*
|
|
47 |
print tree to terminal when finished
|
|
48 |
|
|
49 |
*-s*, *--seed*=_INT_
|
|
50 |
seed random number generator
|
|
51 |
|
|
52 |
*-W*, *--save*=_FILE_
|
|
53 |
save progress to file [default: ~/.cache/cbonsai]
|
|
54 |
|
|
55 |
*-C*, *--load*=_FILE_
|
|
56 |
load progress from file [default: ~/.cache/cbonsai]
|
|
57 |
|
|
58 |
*-v*, *--verbose*
|
|
59 |
increase output verbosity
|
|
60 |
|
|
61 |
*-h*, *--help*
|
|
62 |
show help
|
|
63 |
|
|
64 |
# AUTHORS
|
|
65 |
|
|
66 |
Maintained by John Allbritten <me@johnallbritten.com>, who is assisted by other
|
|
67 |
open source contributors. For more information about cbonsai development, see
|
|
68 |
<https://gitlab.com/jallbrit/cbonsai>.
|
|
0 |
cbonsai (1.3.1-1) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* New upstream release
|
|
3 |
* Added myself to Uploaders
|
|
4 |
* Imported upstream patch for manpage section
|
|
5 |
* Switched to scdoc in d/control for generating the manpage
|
|
6 |
* Bumped Standards-Version (4.6.1)
|
|
7 |
* Updated upstream/metadata
|
|
8 |
* Updated year in d/copyright
|
|
9 |
|
|
10 |
-- Matthias Geiger <matthias.geiger1024@tutanota.de> Fri, 18 Nov 2022 13:37:57 +0100
|
|
11 |
|
0 | 12 |
cbonsai (1.2.1-1) unstable; urgency=medium
|
1 | 13 |
|
2 | 14 |
[ Helmut Grohne ]
|
1 | 1 |
Section: games
|
2 | 2 |
Priority: optional
|
3 | 3 |
Maintainer: Robin Gustafsson <robin@rgson.se>
|
|
4 |
Uploaders: Matthias Geiger <matthias.geiger1024@tutanota.de>
|
4 | 5 |
Build-Depends:
|
5 | 6 |
debhelper-compat (= 13),
|
6 | |
help2man,
|
|
7 |
scdoc,
|
7 | 8 |
libncurses-dev,
|
8 | 9 |
libncurses-dev:native,
|
9 | 10 |
pkg-config,
|
3 | 3 |
Source: https://gitlab.com/jallbrit/cbonsai
|
4 | 4 |
|
5 | 5 |
Files: *
|
6 | |
Copyright: 2021 John Allbritten <me@johnallbritten.com>
|
|
6 |
Copyright: 2021-2022 John Allbritten <me@johnallbritten.com>
|
7 | 7 |
License: GPL-3
|
8 | 8 |
|
9 | 9 |
Files: debian/*
|
10 | |
Copyright: 2021 Robin Gustafsson <robin@rgson.se>
|
|
10 |
Copyright: 2021-2022 Robin Gustafsson <robin@rgson.se>
|
11 | 11 |
License: GPL-3
|
12 | 12 |
|
13 | 13 |
License: GPL-3
|
0 | 0 |
cbonsai usr/games
|
|
1 |
cbonsai.6 usr/share/man/man6
|
|
0 |
Description: Move manpage to section 6
|
|
1 |
Since cbonsai is somewhat of a game/screensafer, this patch moves it to man section 6.
|
|
2 |
Original upstream author is saltedcoffee. I corrected the patch so it applies.
|
|
3 |
Author: Matthias Geiger <matthias.geiger1024@tutanota.de>
|
|
4 |
Origin: upstream
|
|
5 |
Bug: https://gitlab.com/jallbrit/cbonsai/-/merge_requests/21/diffs
|
|
6 |
Forwarded: not-needed
|
|
7 |
Last-Update: 2022-11-18
|
|
8 |
---
|
|
9 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
|
10 |
diff --git a/Makefile b/Makefile
|
|
11 |
index 1d59e0d..78d2356 100644
|
|
12 |
--- a/Makefile
|
|
13 |
+++ b/Makefile
|
|
14 |
@@ -8,21 +8,21 @@ MANDIR = $(PREFIX)/share/man
|
|
15 |
|
|
16 |
cbonsai: cbonsai.c
|
|
17 |
|
|
18 |
-cbonsai.1: cbonsai.scd
|
|
19 |
+cbonsai.6: cbonsai.scd
|
|
20 |
scdoc <$< >$@
|
|
21 |
|
|
22 |
-install: cbonsai cbonsai.1
|
|
23 |
+install: cbonsai cbonsai.6
|
|
24 |
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
25 |
- mkdir -p $(DESTDIR)$(MANDIR)/man1
|
|
26 |
+ mkdir -p $(DESTDIR)$(MANDIR)/man6
|
|
27 |
install -m 0755 cbonsai $(DESTDIR)$(PREFIX)/bin/cbonsai
|
|
28 |
- install -m 0644 cbonsai.1 $(DESTDIR)$(MANDIR)/man1/cbonsai.1
|
|
29 |
+ install -m 0644 cbonsai.6 $(DESTDIR)$(MANDIR)/man1/cbonsai.6
|
|
30 |
|
|
31 |
uninstall:
|
|
32 |
rm -f $(DESTDIR)$(PREFIX)/bin/cbonsai
|
|
33 |
- rm -f $(DESTDIR)$(MANDIR)/man1/cbonsai.1
|
|
34 |
+ rm -f $(DESTDIR)$(MANDIR)/man6/cbonsai.6
|
|
35 |
|
|
36 |
clean:
|
|
37 |
rm -f cbonsai
|
|
38 |
- rm -f cbonsai.1
|
|
39 |
+ rm -f cbonsai.6
|
|
40 |
|
|
41 |
.PHONY: install uninstall clean
|
|
42 |
|
|
43 |
diff --git a/cbonsai.scd b/cbonsai.scd
|
|
44 |
index a1e47ff..07902c7 100644
|
|
45 |
--- a/cbonsai.scd
|
|
46 |
+++ b/cbonsai.scd
|
|
47 |
@@ -1,4 +1,4 @@
|
|
48 |
-cbonsai(1)
|
|
49 |
+cbonsai(6)
|
|
50 |
|
|
51 |
# NAME
|
|
52 |
|
|
0 |
01-move-manpage-section-6.diff
|
10 | 10 |
override_dh_auto_build:
|
11 | 11 |
dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- CFLAGS="$(CFLAGS)"
|
12 | 12 |
|
|
13 |
# Generate the manpage with scdoc
|
13 | 14 |
execute_after_dh_auto_build:
|
14 | |
help2man --no-info --name 'random bonsai tree generator' \
|
15 | |
--version-string $(shell dpkg-parsechangelog -S version) \
|
16 | |
--section 6 --output cbonsai.6 ./cbonsai
|
|
15 |
echo "$(scdoc < cbonsai.scd)" >> cbonsai.6
|
|
16 |
|
17 | 17 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
|
18 | 18 |
dh_auto_clean
|
19 | 19 |
dh_auto_build -- CFLAGS="$(CFLAGS)"
|