diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-05-15 01:08:03 +0200 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-05-15 01:12:38 +0200 |
commit | 55c8da56df18071859a23ea652f4a24e91bf5882 (patch) | |
tree | 4ff5576f96c9a67e1431f2837a468353a9684d66 |
Upstream does not have a tarball so I created one based on
d961a8122210010e7c2c8f201e61170c13d319b4
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/control | 30 | ||||
-rw-r--r-- | debian/copyright | 32 | ||||
-rw-r--r-- | debian/libtermbox-next-dev.install | 3 | ||||
-rw-r--r-- | debian/libtermbox-next0.install | 1 | ||||
-rw-r--r-- | debian/patches/0001-Replace-makefile-by-meson-build-system.patch | 97 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/source/format | 1 |
9 files changed, 176 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b4eee6e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,7 @@ +termbox-next (0.0.1-1~ppa1) lunar; urgency=medium + + * Initial release. + * Replaced upstream makefile by meson build system. + * Build-time tests are not run + + -- Olivier Gayot <olivier.gayot@sigexec.com> Mon, 15 May 2023 01:05:36 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3fcea69 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: termbox-next +Section: libs +Priority: optional +Maintainer: Olivier Gayot <olivier.gayot@sigexec.com> +Build-Depends: + debhelper-compat (= 13), + meson, + pkg-config, +Standards-Version: 4.5.1 + +Package: libtermbox-next0 +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Description: Promising TUI library + This package includes the shared library. + +Package: libtermbox-next-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + libtermbox-next0 (= ${binary:Version}), + ${shlibs:Depends}, + ${misc:Depends}, +Description: Promising TUI library + This package includes the development headers. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..af9e17f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cameltris +Upstream-Contact: Olivier Gayot <olivier.gayot@sigexec.com> +Source: https://git.sigexec.com/cgit.cgi/cameltris.git + +Files: * +Copyright: Copyright (c) 2023 Olivier Gayot +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/libtermbox-next-dev.install b/debian/libtermbox-next-dev.install new file mode 100644 index 0000000..7a3f1e8 --- /dev/null +++ b/debian/libtermbox-next-dev.install @@ -0,0 +1,3 @@ +usr/include +usr/lib/*/libtermbox-next.so +usr/lib/*/pkgconfig diff --git a/debian/libtermbox-next0.install b/debian/libtermbox-next0.install new file mode 100644 index 0000000..1f3113c --- /dev/null +++ b/debian/libtermbox-next0.install @@ -0,0 +1 @@ +usr/lib/*/libtermbox-next.so.0* diff --git a/debian/patches/0001-Replace-makefile-by-meson-build-system.patch b/debian/patches/0001-Replace-makefile-by-meson-build-system.patch new file mode 100644 index 0000000..97694da --- /dev/null +++ b/debian/patches/0001-Replace-makefile-by-meson-build-system.patch @@ -0,0 +1,97 @@ +From 0fc60aec75257e1ba62a1ba9f42600929269dc33 Mon Sep 17 00:00:00 2001 +From: Olivier Gayot <olivier.gayot@sigexec.com> +Date: Mon, 15 May 2023 01:04:34 +0200 +Subject: [PATCH] Replace makefile by meson build system + +This does not run any demo or tests but it should be enough for now for +debian packaging. + +Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com> +--- + makefile | 40 ---------------------------------------- + meson.build | 26 ++++++++++++++++++++++++++ + 2 files changed, 26 insertions(+), 40 deletions(-) + delete mode 100644 makefile + create mode 100644 meson.build + +diff --git a/makefile b/makefile +deleted file mode 100644 +index aa2270b..0000000 +--- a/makefile ++++ /dev/null +@@ -1,40 +0,0 @@ +-NAME=termbox +-CC=gcc +-FLAGS+=-std=c99 -pedantic -Wall -Werror -g +- +-OS:=$(shell uname -s) +-ifeq ($(OS),Linux) +- FLAGS+=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE +-endif +- +-BIND=bin +-SRCD=src +-OBJD=obj +-INCL=-I$(SRCD) +- +-SRCS=$(SRCD)/termbox.c +-SRCS+=$(SRCD)/input.c +-SRCS+=$(SRCD)/memstream.c +-SRCS+=$(SRCD)/ringbuffer.c +-SRCS+=$(SRCD)/term.c +-SRCS+=$(SRCD)/utf8.c +- +-OBJS:=$(patsubst $(SRCD)/%.c,$(OBJD)/$(SRCD)/%.o,$(SRCS)) +- +-.PHONY:all +-all:$(BIND)/$(NAME).a +- +-$(OBJD)/%.o:%.c +- @echo "building source object $@" +- @mkdir -p $(@D) +- @$(CC) $(INCL) $(FLAGS) -c -o $@ $< +- +-$(BIND)/$(NAME).a:$(OBJS) +- @echo "compiling $@" +- @mkdir -p $(BIND) +- @ar rvs $(BIND)/$(NAME).a $(OBJS) +- +-clean: +- @echo "cleaning workspace" +- @rm -rf $(BIND) +- @rm -rf $(OBJD) +diff --git a/meson.build b/meson.build +new file mode 100644 +index 0000000..5add63a +--- /dev/null ++++ b/meson.build +@@ -0,0 +1,26 @@ ++project('libtermbox-next', 'c') ++ ++src_libtermbox_next = [ ++ 'src/input.c', ++ 'src/memstream.c', ++ 'src/ringbuffer.c', ++ 'src/termbox.c', ++ 'src/term.c', ++ 'src/utf8.c', ++] ++ ++pkgconfig = import('pkgconfig') ++ ++lib_libtermbox_next = library('termbox-next', src_libtermbox_next, ++ version: '0.0.1', ++ install: true, ++ c_args: ['-D_XOPEN_SOURCE']) ++ ++install_headers('src/termbox.h') ++ ++pkgconfig.generate( ++ filebase: 'libtermbox-next', ++ name: 'LibTermboxNext', ++ description: 'A promising TUI library', ++ version: meson.project_version(), ++ libraries: lib_libtermbox_next) +-- +2.39.2 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..c9d13de --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Replace-makefile-by-meson-build-system.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) |