Browse Source

Fixed some DEBIAN packaging errors

sisyphus
JezerM 3 years ago
parent
commit
ee0b9835b8
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 11
      build/DEBIAN/control
  2. 2
      build/DEBIAN/postinst
  3. 10
      build/utils.sh

11
build/DEBIAN/control

@ -1,5 +1,5 @@
Package: web-greeter
Version: 3.1.0
Version: 3.1.1
Provides: lightdm-greeter
Replaces: lightdm-webkit-greeter
Section: x11
@ -8,9 +8,8 @@ Homepage: https://github.com/JezerM/web-greeter
Installed-Size: 402396
Architecture: all
Maintainer: JezerM <amyuki4@gmail.com>
Depends: liblightdm-gobject-1-0,
liblightdm-gobject-1-dev
Depends: liblightdm-gobject-1-0, liblightdm-gobject-1-dev, python3, python3-gi, python3-qt5, libqt5webengine5
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.
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.

2
build/DEBIAN/postinst

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# Link to the binary
ln -sf '/opt/web-greeter/web-greeter' '/usr/bin/web-greeter'

10
build/utils.sh

@ -63,14 +63,15 @@ init_build_dir() {
[[ -e "${BUILD_DIR}/dist" ]] && rm -rf "${BUILD_DIR}/dist"
rsync -a "${REPO_DIR}/web-greeter" "${BUILD_DIR}" --exclude "dist" --exclude "__pycache__"
rsync -a "${REPO_DIR}/dist" "${BUILD_DIR}"
cp "${REPO_DIR}/README.md" "${BUILD_DIR}/web-greeter"
cp "${REPO_DIR}/NEWS.md" "${BUILD_DIR}/dist/NEWS.md"
cp "${REPO_DIR}/README.md" "${BUILD_DIR}/web-greeter/"
}
prepare_install() {
cd "${BUILD_DIR}"
INSTALL_PREFIX=$(echo ${INSTALL_ROOT}/${PREFIX} | sed -E 's/\/\//\//g')
mkdir -p \
"${INSTALL_PREFIX}"/share/{man/man1,metainfo,web-greeter,xgreeters,applications,zsh/vendor-completions,bash-completion/completions} \
"${INSTALL_PREFIX}"/share/{man/man1,metainfo,doc/web-greeter,web-greeter,xgreeters,applications,zsh/vendor-completions,bash-completion/completions} \
"${INSTALL_ROOT}"/etc/{lightdm,xdg/lightdm/lightdm.conf.d} \
"${INSTALL_PREFIX}"/bin
@ -80,7 +81,10 @@ prepare_install() {
&& mv themes/_vendor .)
# Man Page
cp "${BUILD_DIR}/dist/${PKGNAME}.1" "${INSTALL_PREFIX}/share/man/man1"
gzip -c9 "${BUILD_DIR}/dist/${PKGNAME}.1" > "${INSTALL_PREFIX}/share/man/man1/${PKGNAME}.1.gz"
# News
gzip -c9 "${BUILD_DIR}/dist/NEWS.md" > "${INSTALL_PREFIX}/share/doc/web-greeter/NEWS.gz"
# Command line completions
if [[ -f /usr/bin/bash ]]; then

Loading…
Cancel
Save