mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-09-11 15:56:04 +03:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Maintainer: Erik Reider <erik.reider@protonmail.com>
|
|
pkgname=swaync-git
|
|
_pkgname=swaync
|
|
pkgver=v0.6.3.r1.g2b8506a
|
|
pkgrel=1
|
|
pkgdesc="A simple notificaion daemon with a GTK panel for checking previous notifications like other DEs"
|
|
url="https://github.com/ErikReider/SwayNotificationCenter"
|
|
arch=(
|
|
'x86_64'
|
|
'aarch64' # ARM v8 64-bit
|
|
'armv7h' # ARM v7 hardfloat
|
|
)
|
|
license=('GPL3')
|
|
depends=("gtk3" "gtk-layer-shell" "dbus" "glib2" "gobject-introspection" "libgee" "json-glib" "libhandy")
|
|
conflicts=("swaync" "swaync-client")
|
|
provides=("swaync" "swaync-client")
|
|
makedepends=(vala meson git scdoc)
|
|
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() {
|
|
DESTDIR="$pkgdir" meson install -C build
|
|
}
|