From a35225c050b7458c9ece583b426a2fed4ac1db33 Mon Sep 17 00:00:00 2001 From: Er2 Date: Sun, 7 Nov 2021 21:34:50 +0300 Subject: [PATCH] add packaging --- .gitignore | 1 + DEBIAN/control | 9 +++++++++ Makefile | 22 ++++++++++++++++++++++ readme.org | 7 ++++++- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 DEBIAN/control create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 45ba989..01321a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *~ build/ +dist/ # may be in fatpak, maybe not .flatpak-builder diff --git a/DEBIAN/control b/DEBIAN/control new file mode 100644 index 0000000..5d96bc9 --- /dev/null +++ b/DEBIAN/control @@ -0,0 +1,9 @@ +Package: er2cord +Version: 1.0 +Section: development +Priority: optional +Architecture: amd64 +Maintainer: Er2 +Depends: +Homepage: https://gitdab.com/er2/er2cord +Description: WIP GTK4 chat. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..62c4596 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# FOR JUST BUILD USE MESON +# THIS IS A PACKAGING TOOL + +NAME = er2cord +BDIR = /tmp/$(NAME) + +all: tar deb clean + +base: + mkdir -p dist + meson build --prefix=$(BDIR) + ninja -C build install + +tar: base + tar -C $(BDIR) -cvzf dist/$(NAME).tar.gz --xform s:'./':: ./ + +deb: base + cp -r DEBIAN/ $(BDIR) + dpkg-deb -b $(BDIR) dist/$(NAME).deb + +clean: + rm -rf build $(BDIR) diff --git a/readme.org b/readme.org index b9de243..187d4e5 100644 --- a/readme.org +++ b/readme.org @@ -7,7 +7,7 @@ Er2Cord is a Work In Progress (WIP) chat written in Vala. * Installation - + Install ~meson ninja libgtk-4-dev~ + + Install ~valac meson ninja libgtk-4-dev~ + ~mkdir -p build && meson ..~ @@ -15,3 +15,8 @@ Er2Cord is a Work In Progress (WIP) chat written in Vala. or install: ~ninja install && er2cord~ +* Packaging + +If you want to install from deb or tarball +or you just a maintainer, you can use ~make~. +