Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user