add packaging
This commit is contained in:
parent
65f7db2d9f
commit
a35225c050
4 changed files with 38 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
*~
|
*~
|
||||||
build/
|
build/
|
||||||
|
dist/
|
||||||
# may be in fatpak, maybe not
|
# may be in fatpak, maybe not
|
||||||
.flatpak-builder
|
.flatpak-builder
|
||||||
|
|
9
DEBIAN/control
Normal file
9
DEBIAN/control
Normal 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
22
Makefile
Normal 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)
|
|
@ -7,7 +7,7 @@ Er2Cord is a Work In Progress (WIP) chat written in Vala.
|
||||||
|
|
||||||
* Installation
|
* Installation
|
||||||
|
|
||||||
+ Install ~meson ninja libgtk-4-dev~
|
+ Install ~valac meson ninja libgtk-4-dev~
|
||||||
|
|
||||||
+ ~mkdir -p build && meson ..~
|
+ ~mkdir -p build && meson ..~
|
||||||
|
|
||||||
|
@ -15,3 +15,8 @@ Er2Cord is a Work In Progress (WIP) chat written in Vala.
|
||||||
|
|
||||||
or install: ~ninja install && er2cord~
|
or install: ~ninja install && er2cord~
|
||||||
|
|
||||||
|
* Packaging
|
||||||
|
|
||||||
|
If you want to install from deb or tarball
|
||||||
|
or you just a maintainer, you can use ~make~.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue