Switch to new package format

This commit is contained in:
2026-06-13 20:00:16 +03:00
parent 297ae75b3d
commit fa2737a8a9
2 changed files with 11 additions and 11 deletions
+48
View File
@@ -0,0 +1,48 @@
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
# 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
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
./configure \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--disable-static \
--disable-tests \
--enable-gtk-doc \
--with-greeter-user=lightdm \
--with-greeter-session=lightdm-gtk-greeter
make
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
# Install lightdm config file
install -Dm644 "$BPM_WORKDIR"/lightdm.conf "$BPM_OUTPUT"/etc/lightdm/lightdm.conf
# Install Xsession file
install -Dm755 "$BPM_WORKDIR"/Xsession "$BPM_OUTPUT"/etc/lightdm/Xsession
# Install sysusers file
install -Dm644 "$BPM_WORKDIR"/sysusers "$BPM_OUTPUT"/usr/lib/sysusers.d/lightdm.conf
# Install pam files
install -Dm644 "$BPM_WORKDIR"/lightdm.pam "$BPM_OUTPUT"/etc/pam.d/lightdm
install -Dm644 "$BPM_WORKDIR"/lightdm-autologin.pam "$BPM_OUTPUT"/etc/pam.d/lightdm-autologin
install -Dm644 "$BPM_WORKDIR"/lightdm-greeter.pam "$BPM_OUTPUT"/etc/pam.d/lightdm-greeter
# Install polkit rules
install -Dm644 "$BPM_WORKDIR"/polkit-rules "$BPM_OUTPUT"/usr/share/polkit-1/rules.d/lightdm.rules
# Install esvm service
install -Dm644 "$BPM_WORKDIR"/lightdm.esv "$BPM_OUTPUT"/etc/esvm/services/lightdm.esv
install -Dm755 "$BPM_WORKDIR"/lightdm.sh "$BPM_OUTPUT"/etc/esvm/scripts/lightdm.sh
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/lightdm
}