Browse Source

Added utils for debian packaging

sisyphus
JezerM 3 years ago
parent
commit
71f18bb047
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 1
      .gitignore
  2. 2
      Makefile
  3. 20
      build/DEBIAN/control
  4. 3
      build/DEBIAN/postinst
  5. 2
      build/utils.sh

1
.gitignore vendored

@ -4,6 +4,7 @@ build/**
!build/.gitignore !build/.gitignore
!build/ci/Dockerfile !build/ci/Dockerfile
!build/utils.sh !build/utils.sh
!build/DEBIAN/
whither/ whither/
### JetBrains template ### JetBrains template

2
Makefile

@ -63,6 +63,7 @@ all: install
build: _build_init _apply_config build: _build_init _apply_config
$(DO) build $(PREFIX) $(DO) build $(PREFIX)
$(DO) prepare-install $(PREFIX)
build_dev: install build_dev: install
$(MAYBE_SUDO_DO) install-dev $(MAYBE_SUDO_DO) install-dev
@ -71,7 +72,6 @@ clean:
$(DO) clean $(DO) clean
install: build install: build
./build/utils.sh prepare-install $(PREFIX)
$(MAYBE_SUDO_DO) install $(DESTDIR) $(PREFIX) $(MAYBE_SUDO_DO) install $(DESTDIR) $(PREFIX)
$(call colorecho, SUCCESS!) $(call colorecho, SUCCESS!)

20
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 <amyuki4@gmail.com>
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.

3
build/DEBIAN/postinst

@ -0,0 +1,3 @@
#!/usr/bin/env sh
pip3 install https://github.com/JezerM/whither/tarball/master

2
build/utils.sh

@ -8,7 +8,7 @@ DESTDIR=''
PREFIX='' PREFIX=''
clean_build_dir() { 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 find "${BUILD_DIR}" -type d ! -name build ! -path '**/ci' -delete 2>/dev/null || true
} }

Loading…
Cancel
Save