2023-02-24 01:09:18 +03:00
|
|
|
# vim: ft=PKGBUILD
|
2022-05-18 23:33:55 +03:00
|
|
|
# Maintainer: Erik Reider <erik.reider@protonmail.com>
|
|
|
|
pkgname=swaync-git
|
|
|
|
_pkgname=swaync
|
2024-02-10 19:19:01 +03:00
|
|
|
pkgver=r510.8613cdc
|
2023-12-19 21:22:58 +03:00
|
|
|
pkgrel=1
|
2023-06-26 11:58:09 +03:00
|
|
|
pkgdesc="A simple notification daemon with a GTK panel for checking previous notifications like other DEs"
|
2022-05-18 23:33:55 +03:00
|
|
|
url="https://github.com/ErikReider/SwayNotificationCenter"
|
|
|
|
arch=(
|
|
|
|
'x86_64'
|
|
|
|
'aarch64' # ARM v8 64-bit
|
|
|
|
'armv7h' # ARM v7 hardfloat
|
|
|
|
)
|
|
|
|
license=('GPL3')
|
2023-12-19 20:40:23 +03:00
|
|
|
depends=("gtk3" "gtk-layer-shell" "dbus" "glib2" "gobject-introspection" "libgee" "json-glib" "libhandy" "libpulse" "gvfs" "libnotify" "granite")
|
2022-05-18 23:33:55 +03:00
|
|
|
conflicts=("swaync" "swaync-client")
|
2023-02-28 13:32:31 +03:00
|
|
|
provides=("swaync" "swaync-client" "notification-daemon")
|
2023-12-15 14:16:46 +03:00
|
|
|
makedepends=("vala>=0.56" meson git scdoc sassc)
|
2022-05-18 23:33:55 +03:00
|
|
|
source=("$_pkgname::git+$url")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $_pkgname
|
|
|
|
(
|
|
|
|
set -o pipefail
|
|
|
|
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
|
|
|
|
|| printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $_pkgname
|
|
|
|
git checkout main
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
arch-meson $_pkgname build -Dscripting=true
|
|
|
|
ninja -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-14 15:05:02 +03:00
|
|
|
DESTDIR="$pkgdir/" ninja -C build install
|
2023-02-24 01:09:18 +03:00
|
|
|
install -Dm644 "$_pkgname/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
install -Dm644 "$_pkgname/README.md" -t "$pkgdir/usr/share/doc/$pkgname"
|
2023-02-23 23:57:58 +03:00
|
|
|
}
|