ports/contrib (3.7): swaync: initial commit, version 0.7.2
commit ae10c4fc2fbb43af944b4ddc76ade5a0d2827bd5 Author: Tim Biermann <tbier@posteo.de> Date: Sun Oct 30 10:26:25 2022 +0000 swaync: initial commit, version 0.7.2 diff --git a/swaync/.footprint b/swaync/.footprint new file mode 100644 index 000000000..2a905c515 --- /dev/null +++ b/swaync/.footprint @@ -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 diff --git a/swaync/.signature b/swaync/.signature new file mode 100644 index 000000000..48f917bba --- /dev/null +++ b/swaync/.signature @@ -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 diff --git a/swaync/Pkgfile b/swaync/Pkgfile new file mode 100644 index 000000000..f686343ea --- /dev/null +++ b/swaync/Pkgfile @@ -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...) + +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 +} diff --git a/swaync/post-install b/swaync/post-install new file mode 100755 index 000000000..21e60126d --- /dev/null +++ b/swaync/post-install @@ -0,0 +1,4 @@ +#!/bin/sh +# compile needed glib schemas +glib-compile-schemas /usr/share/glib-2.0/schemas +
participants (1)
-
crux@crux.nu