add packaging

This commit is contained in:
Er2 2021-11-07 21:34:50 +03:00
parent 65f7db2d9f
commit a35225c050
4 changed files with 38 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*~
build/
dist/
# may be in fatpak, maybe not
.flatpak-builder

9
DEBIAN/control Normal file
View File

@ -0,0 +1,9 @@
Package: er2cord
Version: 1.0
Section: development
Priority: optional
Architecture: amd64
Maintainer: Er2 <er2@dismail.de>
Depends:
Homepage: https://gitdab.com/er2/er2cord
Description: WIP GTK4 chat.

22
Makefile Normal file
View File

@ -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)

View File

@ -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~.