commit 3bca00491839fe59466198055f03fd32dfbd4932 Author: EnumDev Date: Wed Oct 15 14:15:19 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..7b5b73f --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="apps/xfce4-notifyd" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.xfce.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | cut -d'-' -f3 | grep -v 'pre' | sort -V | tail -n1) + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..2ebfe52 --- /dev/null +++ b/pkg.info @@ -0,0 +1,26 @@ +name: xfce4-notifyd +description: Xfce Notification service +version: 0.9.7 +revision: 1 +url: https://docs.xfce.org/apps/notifyd/start +license: GPL2-or-later +architecture: any +type: source +depends: + - gtk-layer-shell + - hicolor-icon-theme + - libcanberra + - libnotify + - libxfce4ui + - libxfce4util + - sqlite + - xfconf +make_depends: + - glib + - xfce4-dev-tools + - xfce4-panel +downloads: + - url: https://gitlab.xfce.org/apps/xfce4-notifyd/-/archive/xfce4-notifyd-${BPM_PKG_VERSION}/xfce4-notifyd-xfce4-notifyd-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 2b0cb5abc1aa59bc70f9208bb648cfd6616120765ca24c3f2c716182d38c3630 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..7a2a42c --- /dev/null +++ b/source.sh @@ -0,0 +1,26 @@ +# This is the source.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 prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + NOCONFIGURE=1 ./autogen.sh --disable-systemd +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --sysconfdir=/etc --disable-debug --enable-maintainer-mode + 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 package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-notifyd/COPYING +}