packaging number ...

This commit is contained in:
Er2 2021-11-10 12:19:29 +03:00
parent 897a36e8e0
commit e6ef40be12
4 changed files with 40 additions and 15 deletions

2
.gitignore vendored
View File

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

14
INSTALL Normal file
View File

@ -0,0 +1,14 @@
Er2Cord 0.1.0
Installation
Debian: make deb
apt install ./er2cord.deb
tarball: make install
Deinstallation
Debian: apt remove er2cord
tarball: make uninstall

View File

@ -1,22 +1,35 @@
# You can still use meson, but can make
NAME = er2cord
DESTDIR ?= /
IPAT ?= /usr
TMP = ./.$(NAME)
#$(abspath ./.$(NAME))
all: build
build: build/$(NAME)
build/$(NAME):
meson build
meson build --prefix="$(IPAT)"
ninja -C build
deb: clean
make DESTDIR="$(TMP)" install
cp -r tools/DEBIAN $(TMP)
chmod 755 $(TMP)/DEBIAN/postinst
@dpkg-deb -b $(TMP) er2cord.deb
rm -rf $(TMP)
install: build
ninja -C build install
DESTDIR="../$(DESTDIR)" ninja -C build install
find "$(DESTDIR)" -exec chmod 755 {} \;
uninstall: build
ninja -C build uninstall
docs: build
mkdir -p "$(DESTDIR)"
find dist/ ! -name '*er2cord*' -exec cp -f "{}" "$(DESTDIR)" \;
mkdir -p "$(IPAT)"
find dist/ ! -name '*er2cord*' -exec cp -f "{}" "$(IPAT)" \;
clean:
rm -rf build
rm -rf build $(TMP)

View File

@ -7,16 +7,14 @@ Er2Cord is a Work In Progress (WIP) chat written in Vala.
* Installation
+ Install ~valac meson ninja libgtk-4-dev~
+ Dependencies ~valac meson ninja libgtk-4-dev~
+ ~mkdir -p build && meson ..~
+ Just build: ~ninja && ./er2cord~
or install: ~ninja install && er2cord~
+ ~make install~
* Packaging
If you want to install from deb or tarball
or you just a maintainer, you can use ~make~.
Only deb packaging was tested (~make deb~)
Other isn't tested and can be just broken,
but you can use tarballs anyway.