From 71f18bb047cd54dd6b281e095691a0b68d4cc96b Mon Sep 17 00:00:00 2001 From: JezerM Date: Sat, 14 Aug 2021 22:02:11 -0600 Subject: [PATCH] Added utils for debian packaging --- .gitignore | 1 + Makefile | 2 +- build/DEBIAN/control | 20 ++++++++++++++++++++ build/DEBIAN/postinst | 3 +++ build/utils.sh | 2 +- 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 build/DEBIAN/control create mode 100755 build/DEBIAN/postinst diff --git a/.gitignore b/.gitignore index 2d16a5f..906c067 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ build/** !build/.gitignore !build/ci/Dockerfile !build/utils.sh +!build/DEBIAN/ whither/ ### JetBrains template diff --git a/Makefile b/Makefile index 83e0d3b..de450c1 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ all: install build: _build_init _apply_config $(DO) build $(PREFIX) + $(DO) prepare-install $(PREFIX) build_dev: install $(MAYBE_SUDO_DO) install-dev @@ -71,7 +72,6 @@ clean: $(DO) clean install: build - ./build/utils.sh prepare-install $(PREFIX) $(MAYBE_SUDO_DO) install $(DESTDIR) $(PREFIX) $(call colorecho, SUCCESS!) diff --git a/build/DEBIAN/control b/build/DEBIAN/control new file mode 100644 index 0000000..64b55a6 --- /dev/null +++ b/build/DEBIAN/control @@ -0,0 +1,20 @@ +Package: web-greeter +Version: 3.0.0 +Provides: lightdm-greeter +Replaces: lightdm-webkit-greeter +Section: x11 +Priority: optional +Homepage: https://github.com/JezerM/web-greeter +Installed-Size: 15052 +Architecture: all +Maintainer: JezerM +Depends: python3, + python3-pip, + python3-gi, + python3-pyqt5, + liblightdm-gobject-1-0, + liblightdm-gobject-1-dev +Description: A modern, visually appealing greeter for LightDM. + Web Greeter utilizes themes built with HTML/CSS/JavaScript for it's login screen. Web Greeter + themes provide modern, visually appealing, and feature-rich login screens. Two themes are + included by default. There is also a growing number of 3rd-Party themes available online. diff --git a/build/DEBIAN/postinst b/build/DEBIAN/postinst new file mode 100755 index 0000000..ac34251 --- /dev/null +++ b/build/DEBIAN/postinst @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +pip3 install https://github.com/JezerM/whither/tarball/master diff --git a/build/utils.sh b/build/utils.sh index f8a2ab8..16165f0 100755 --- a/build/utils.sh +++ b/build/utils.sh @@ -8,7 +8,7 @@ DESTDIR='' PREFIX='' clean_build_dir() { - find "${BUILD_DIR}" -type f ! -path '**/ci/**' ! -name '*.yml' ! -name utils.sh -delete + find "${BUILD_DIR}" -type f ! -path '**/ci/**' ! -name '*.yml' ! -path "**/DEBIAN/**" ! -name utils.sh -delete find "${BUILD_DIR}" -type d ! -name build ! -path '**/ci' -delete 2>/dev/null || true }