packaging number ...
This commit is contained in:
parent
897a36e8e0
commit
e6ef40be12
4 changed files with 40 additions and 15 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
*~
|
*~
|
||||||
build/
|
build/
|
||||||
dist/*er2cord*
|
er2cord.*
|
||||||
# may be in fatpak, maybe not
|
# may be in fatpak, maybe not
|
||||||
.flatpak-builder
|
.flatpak-builder
|
||||||
|
|
14
INSTALL
Normal file
14
INSTALL
Normal 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
|
||||||
|
|
25
Makefile
25
Makefile
|
@ -1,22 +1,35 @@
|
||||||
# You can still use meson, but can make
|
# You can still use meson, but can make
|
||||||
|
|
||||||
NAME = er2cord
|
NAME = er2cord
|
||||||
DESTDIR ?= /
|
IPAT ?= /usr
|
||||||
|
TMP = ./.$(NAME)
|
||||||
|
#$(abspath ./.$(NAME))
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
build: build/$(NAME)
|
build: build/$(NAME)
|
||||||
|
|
||||||
build/$(NAME):
|
build/$(NAME):
|
||||||
meson build
|
meson build --prefix="$(IPAT)"
|
||||||
ninja -C build
|
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
|
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
|
docs: build
|
||||||
mkdir -p "$(DESTDIR)"
|
mkdir -p "$(IPAT)"
|
||||||
find dist/ ! -name '*er2cord*' -exec cp -f "{}" "$(DESTDIR)" \;
|
find dist/ ! -name '*er2cord*' -exec cp -f "{}" "$(IPAT)" \;
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build $(TMP)
|
||||||
|
|
||||||
|
|
14
readme.org
14
readme.org
|
@ -7,16 +7,14 @@ Er2Cord is a Work In Progress (WIP) chat written in Vala.
|
||||||
|
|
||||||
* Installation
|
* Installation
|
||||||
|
|
||||||
+ Install ~valac meson ninja libgtk-4-dev~
|
+ Dependencies ~valac meson ninja libgtk-4-dev~
|
||||||
|
|
||||||
+ ~mkdir -p build && meson ..~
|
+ ~make install~
|
||||||
|
|
||||||
+ Just build: ~ninja && ./er2cord~
|
|
||||||
|
|
||||||
or install: ~ninja install && er2cord~
|
|
||||||
|
|
||||||
* Packaging
|
* Packaging
|
||||||
|
|
||||||
If you want to install from deb or tarball
|
Only deb packaging was tested (~make deb~)
|
||||||
or you just a maintainer, you can use ~make~.
|
|
||||||
|
Other isn't tested and can be just broken,
|
||||||
|
but you can use tarballs anyway.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue