Switch to new download format, remove dependencies field from esvm service and enable manpages
This commit is contained in:
@@ -1,11 +1,35 @@
|
||||
name: sddm
|
||||
description: QML based X11 and Wayland display manager
|
||||
version: 0.21.0
|
||||
revision: 3
|
||||
revision: 4
|
||||
url: https://github.com/sddm/sddm
|
||||
license: GPL2-only,CC-BY-3.0
|
||||
architecture: any
|
||||
depends: ["gcc-libs", "glibc", "elogind", "libxau", "libxcb", "pam", "qt6-base", "qt6-declarative", "sysusers", "ttf-font", "xorg-server", "xorg-xauth"]
|
||||
make_depends: ["cmake", "extra-cmake-modules", "qt6-tools"]
|
||||
keep: ["etc/sddm.conf", "usr/share/sddm/scripts/Xsetup", "usr/share/sddm/scripts/Xstop"]
|
||||
type: source
|
||||
keep:
|
||||
- etc/sddm.conf
|
||||
- usr/share/sddm/scripts/Xsetup
|
||||
- usr/share/sddm/scripts/Xstop
|
||||
depends:
|
||||
- gcc-libs
|
||||
- glibc
|
||||
- elogind
|
||||
- libxau
|
||||
- libxcb
|
||||
- pam
|
||||
- qt6-base
|
||||
- qt6-declarative
|
||||
- sysusers
|
||||
- ttf-font
|
||||
- xorg-server
|
||||
- xorg-xauth
|
||||
make_depends:
|
||||
- cmake
|
||||
- python-docutils
|
||||
- extra-cmake-modules
|
||||
- qt6-tools
|
||||
downloads:
|
||||
- url: https://github.com/sddm/sddm/archive/v${BPM_PKG_VERSION}/sddm-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: f895de2683627e969e4849dbfbbb2b500787481ca5ba0de6d6dfdae5f1549abf
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
name: sddm
|
||||
description: Start the Simple Desktop Display Manager
|
||||
dependencies: ["udevd"]
|
||||
type: background
|
||||
start_cmd: /etc/esvm/scripts/sddm.sh
|
||||
exit_method: kill
|
||||
|
||||
@@ -2,41 +2,28 @@
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
DOWNLOAD="https://github.com/sddm/sddm/archive/v${BPM_PKG_VERSION}/sddm-${BPM_PKG_VERSION}.tar.gz"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for downloading files and putting them into the correct location
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -D CMAKE_POLICY_VERSION_MINIMUM='3.5' \
|
||||
cmake -B build \
|
||||
-D CMAKE_POLICY_VERSION_MINIMUM='3.5' \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-DENABLE_JOURNALD=OFF \
|
||||
-DNO_SYSTEMD=ON \
|
||||
-DUSE_ELOGIND=ON \
|
||||
-D RUNTIME_DIR=/run/sddm \
|
||||
-D BUILD_MAN_PAGES=OFF \
|
||||
-D BUILD_MAN_PAGES=ON \
|
||||
-D BUILD_WITH_QT6=ON \
|
||||
-D DATA_INSTALL_DIR=/usr/share/sddm \
|
||||
-D DBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf ..
|
||||
make
|
||||
-D DBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||
|
||||
# Create needed directories
|
||||
install -dm755 "$BPM_OUTPUT"/var/lib/sddm
|
||||
@@ -59,6 +46,7 @@ package() {
|
||||
install -Dm644 "$BPM_WORKDIR"/sddm.esv "$BPM_OUTPUT"/etc/esvm/services/sddm.esv
|
||||
install -Dm755 "$BPM_WORKDIR"/sddm.sh "$BPM_OUTPUT"/etc/esvm/scripts/sddm.sh
|
||||
|
||||
# Install package licenses
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/sddm/LICENSE
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE.CC-BY-3.0 "$BPM_OUTPUT"/usr/share/licenses/sddm/LICENSE.CC-BY-3.0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user