blob: 3dc512c2bedcf7b8a457b1a713183f4fc34955a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: meow <sosdjolfkhgsldjkfh@gmail.com>
# this is based off https://aur.archlinux.org/packages/xfce4-notifyd-git
pkgname=xfce4-notifyd-pango-markup-git
pkgver=0.9.7.r349.g7ac8ce1
pkgrel=2
pkgdesc='notification daemon for the xfce desktop - git checkout with a patch to allow notification body, summary, and button to have pango markup. based off of: https://aur.archlinux.org/packages/xfce4-notifyd-git'
arch=('i686' 'x86_64')
license=('GPL')
url='http://goodies.xfce.org/projects/applications/xfce4-notifyd'
groups=('xfce4-goodies')
depends=('libxfce4ui' 'hicolor-icon-theme' 'libnotify' 'gtk-layer-shell' 'libcanberra' 'libxfce4util' 'sqlite' 'xfconf')
makedepends=('xfce4-dev-tools' 'exo' 'intltool' 'git' 'glib2-devel' 'meson')
conflicts=('xfce4-notifyd')
provides=('notification-daemon' 'xfce4-notifyd')
options=('!libtool')
install=${pkgname}.install
source=('git+https://gitlab.xfce.org/apps/xfce4-notifyd.git'
'body_markup.patch'
'summary_markup.patch'
'button_markup.patch')
sha256sums=('SKIP'
'eacb3ddfdbc547ec9dfe18c71b62112945aefe27be8eadbefff90320dbe4c487'
'2ef314d5431de85309bbb021f12012412059bf844fa709317f8f46c30f7a81df'
'5b44cc6ac6923c1f0f6f18bcfe300927dbc742bb1f52ca2432c741286b3ca730')
pkgver() {
cd xfce4-notifyd/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
echo "$(sed -e "s/^${pkgname%%-pango-markup-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
else
echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
fi
}
prepare() {
echo "applying patches..."
patch -uN --verbose "./xfce4-notifyd/xfce4-notifyd/xfce-notify-window.c" "./body_markup.patch"
patch -uN --verbose "./xfce4-notifyd/xfce4-notifyd/xfce-notify-window.c" "./summary_markup.patch"
patch -uN --verbose "./xfce4-notifyd/xfce4-notifyd/xfce-notify-window.c" "./button_markup.patch"
echo "done applying patches!"
}
build() {
cd xfce4-notifyd/
#./autogen.sh \
# --prefix=/usr \
# --sysconfdir=/etc \
# --libexecdir=/usr/lib/xfce4 \
# --localstatedir=/var \
# --disable-static
#make
# taken from comment by kIERO on xfce4-notifyd-git
arch-meson build \
--prefix=/usr \
-Dx11=enabled \
-Dwayland=enabled \
-Ddbus-service-dir= \
-Dsystemd-user-service-dir=
meson compile -C build
}
package() {
cd xfce4-notifyd/
meson install -C build --destdir "${pkgdir}"
#make DESTDIR=${pkgdir} install
}
|