1
0
forked from ports/contrib

swaync: initial commit, version 0.7.2

This commit is contained in:
Tim Biermann 2022-10-30 10:26:25 +00:00
parent 2023e35474
commit ae10c4fc2f
Signed by: tb
GPG Key ID: 42F8B4E30B673606
4 changed files with 58 additions and 0 deletions

21
swaync/.footprint Normal file
View File

@ -0,0 +1,21 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/xdg/
drwxr-xr-x root/root etc/xdg/swaync/
-rw-r--r-- root/root etc/xdg/swaync/config.json
-rw-r--r-- root/root etc/xdg/swaync/configSchema.json
-rw-r--r-- root/root etc/xdg/swaync/style.css
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/swaync
-rwxr-xr-x root/root usr/bin/swaync-client
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/systemd/
drwxr-xr-x root/root usr/lib/systemd/user/
-rw-r--r-- root/root usr/lib/systemd/user/swaync.service
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/dbus-1/
drwxr-xr-x root/root usr/share/dbus-1/services/
-rw-r--r-- root/root usr/share/dbus-1/services/org.erikreider.swaync.service
drwxr-xr-x root/root usr/share/glib-2.0/
drwxr-xr-x root/root usr/share/glib-2.0/schemas/
-rw-r--r-- root/root usr/share/glib-2.0/schemas/org.erikreider.swaync.gschema.xml

5
swaync/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF31xJ7b7kcJEiDKjWcn4yGq1LRTbVzkaUdmP+1AE6p9Yfsd27+HKje/X4sxw1ocW+4MSMo2H1ywPpPJ1ECdE3VAQ=
SHA256 (Pkgfile) = 521c70a40d8687c4f48391089e8939a6394c8371497ee11c9977bcbea33b6ba8
SHA256 (.footprint) = c6e91336ac0d1c7c2b222ea53b9fe9e87dfb1cdc94f82ea20ea604e91e788e35
SHA256 (swaync-0.7.2.tar.gz) = 0b8e1d4b0f35a93d435b982f8076ad153b5e6504f46b9bc897085fcab2ce70a3

28
swaync/Pkgfile Normal file
View File

@ -0,0 +1,28 @@
# Description: A simple GTK based notification daemon for SwayWM
# URL: https://github.com/ErikReider/SwayNotificationCenter
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gtk-layer-shell json-glib libhandy
name=swaync
version=0.7.2
release=1
source=(https://github.com/ErikReider/SwayNotificationCenter/archive/v$version/$name-$version.tar.gz)
build() {
ls /usr/include/gtk-3.0/gdk/gdkwayland.h || (printf '\e[1;31m%-6s\e[m\n' "gtk3 is missing wayland libraries, rebuild mesa, then gtk3 to install $name" ; exit 1)
prt-get isinst bash-completions || PKGMK_SWAYNC+=' -D bash-completions=false'
prt-get isinst fish || PKGMK_SWAYNC+=' -D fish-completions=false'
prt-get isinst scdoc || PKGMK_SWAYNC+=' -D man-pages=false'
prt-get isinst zsh || PKGMK_SWAYNC+=' -D zsh-completions=false'
meson setup SwayNotificationCenter-$version build $PKGMK_SWAYNC \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
meson compile -C build
DESTDIR=$PKG meson install -C build
}

4
swaync/post-install Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# compile needed glib schemas
glib-compile-schemas /usr/share/glib-2.0/schemas