blob: e5bad65d833d99ddb9812836b9bbd5faaf52d553 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
# Maintainer: rilian-la-te <ria.freelander@gmail.com>
_disable_mate=0
_disable_xfce=0
_disable_vala=0
_disable_budgie=0
pkgname=(
'sntray-plugin-common-git'
)
_opts=(
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_LIBEXECDIR=lib
)
makedepends=('cmake' 'vala' 'gtk3' 'libpeas')
if (("${_disable_mate}" == 0));then
_opts+=(-DENABLE_MATE=ON)
pkgname+=('mate-panel-sntray-git')
makedepends+=('mate-panel')
# msg "Mate applet enabled"
else
_opts+=(-DENABLE_MATE=OFF)
fi
if (("${_disable_xfce}" == 0));then
_opts+=(-DENABLE_XFCE=ON)
pkgname+=('xfce4-panel-sntray-git')
makedepends+=('xfce4-panel>=4.11.2')
# msg "Xfce applet enabled"
else
_opts+=(-DENABLE_XFCE=OFF)
fi
if (("${_disable_vala}" == 0));then
_opts+=(-DENABLE_VALAPANEL=ON)
pkgname+=('vala-panel-sntray-git')
makedepends+=('vala-panel>=0.3.75')
# msg "Vala Panel applet enabled"
else
_opts+=(-DENABLE_VALAPANEL=OFF)
fi
if (("${_disable_budgie}" == 0));then
_opts+=(-DENABLE_BUDGIE=ON)
pkgname+=('budgie-sntray-git')
makedepends+=('budgie-desktop')
# msg "Budgie applet enabled"
else
_opts+=(-DENABLE_BUDGIE=OFF)
fi
#msg "If you want to disable an applet, edit pkgbuild variables _disable_[applet]"
pkgbase=vala-panel-sntray-git
_pkgbase=xfce4-sntray-plugin
_cmakename=cmake-vala
_dbusmenuname=vala-dbusmenu
pkgver=0.4.12
pkgrel=1
pkgdesc="Plugin for xfce4-panel and vala-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
url="https://gitlab.com/vala-panel-project/xfce4-sntray-plugin"
arch=('i686' 'x86_64')
license=('LGPL')
source=("git+https://gitlab.com/vala-panel-project/${_pkgbase}.git"
"git+https://gitlab.com/vala-panel-project/${_cmakename}.git")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "${srcdir}/${_pkgbase}"
( set -o pipefail
git describe --long --tags 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 "${srcdir}/${_cmakename}"
cp -r . "${srcdir}/${_pkgbase}/cmake"
}
build(){
cd "${srcdir}/${_pkgbase}"
cmake ./ "${_opts[@]}"
make
}
package_xfce4-panel-sntray-git(){
pkgdesc="Plugin for xfce4-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
depends=('gtk3' 'xfce4-panel>=4.11.2' 'sntray-plugin-common-git')
optdepends=('vala-panel-extras-volume: ALSA volume applet'
'vala-panel-extras-battery: UPower battery applet'
'vala-panel-extras-weather: Weather applet'
'vala-panel-extras-xkb: XKB applet'
'sni-qt: Qt applications for StatusNotifier'
'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
cd "${srcdir}/${_pkgbase}"
make -C "src" DESTDIR="${pkgdir}" install
make -C "data" DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/lib/vala-panel"
rm -rf "${pkgdir}/usr/share/mate-panel"
rm -rf "${pkgdir}/usr/share/vala-panel"
rm -rf "${pkgdir}/usr/lib/mate-panel"
rm -rf "${pkgdir}/usr/lib/budgie-desktop"
rm -rf "${pkgdir}/usr/share/glib-2.0"
rm -rf "${pkgdir}/usr/share/dbus-1"
}
package_mate-panel-sntray-git(){
pkgdesc="Plugin for mate-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
depends=('gtk3' 'mate-panel' 'sntray-plugin-common-git')
optdepends=('vala-panel-extras-volume: ALSA volume applet'
'vala-panel-extras-battery: UPower battery applet'
'vala-panel-extras-weather: Weather applet'
'vala-panel-extras-xkb: XKB applet'
'sni-qt: Qt applications for StatusNotifier'
'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
cd "${srcdir}/${_pkgbase}"
make -C "src" DESTDIR="${pkgdir}" install
make -C "data" DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/lib/vala-panel"
rm -rf "${pkgdir}/usr/lib/xfce4"
rm -rf "${pkgdir}/usr/share/xfce4"
rm -rf "${pkgdir}/usr/share/vala-panel"
rm -rf "${pkgdir}/usr/lib/budgie-desktop"
rm -rf "${pkgdir}/usr/share/glib-2.0"
}
package_vala-panel-sntray-git(){
pkgdesc="Plugin for vala-panel to show StatusNotifierItems (AppIndicators) via FlowBox"
depends=('gtk3' 'vala-panel' 'sntray-plugin-common-git')
optdepends=('vala-panel-extras-volume: ALSA volume applet'
'vala-panel-extras-battery: UPower battery applet'
'vala-panel-extras-weather: Weather applet'
'vala-panel-extras-xkb: XKB applet'
'sni-qt: Qt applications for StatusNotifier'
'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
cd "${srcdir}/${_pkgbase}"
make -C "src" DESTDIR="${pkgdir}" install
make -C "data" DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/lib/xfce4"
rm -rf "${pkgdir}/usr/share/xfce4"
rm -rf "${pkgdir}/usr/share/mate-panel"
rm -rf "${pkgdir}/usr/lib/mate-panel"
rm -rf "${pkgdir}/usr/lib/budgie-desktop"
rm -rf "${pkgdir}/usr/share/glib-2.0"
rm -rf "${pkgdir}/usr/share/dbus-1"
}
package_budgie-sntray-git(){
pkgdesc="Plugin for budgie to show StatusNotifierItems (AppIndicators) via FlowBox"
depends=('budgie-desktop' 'gtk3' 'libpeas' 'sntray-plugin-common-git')
optdepends=('vala-panel-extras-volume: ALSA volume applet'
'vala-panel-extras-battery: UPower battery applet'
'vala-panel-extras-weather: Weather applet'
'vala-panel-extras-xkb: XKB applet'
'sni-qt: Qt applications for StatusNotifier'
'libappindicator-gtk2: Gtk2 applications for StatusNotifier'
'libappindicator-gtk3: Gtk3 applications for StatusNotifier')
cd "${srcdir}/${_pkgbase}"
make -C "src" DESTDIR="${pkgdir}" install
make -C "data" DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/lib/xfce4"
rm -rf "${pkgdir}/usr/share/xfce4"
rm -rf "${pkgdir}/usr/share/mate-panel"
rm -rf "${pkgdir}/usr/share/vala-panel"
rm -rf "${pkgdir}/usr/lib/mate-panel"
rm -rf "${pkgdir}/usr/lib/vala-panel"
rm -rf "${pkgdir}/usr/share/glib-2.0"
rm -rf "${pkgdir}/usr/share/dbus-1"
}
package_sntray-plugin-common-git(){
pkgdesc="Translations and common files for StatusNotifier Menu"
optdepends=('xfce4-panel-sntray-git' 'mate-panel-sntray-git' 'vala-panel-sntray-git' 'budgie-sntray-git')
replaces=('sntray-plugin-translations-git')
arch=('any')
cd "${srcdir}/${_pkgbase}"
make -C "po" DESTDIR="${pkgdir}" install
make -C "data" DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/share/xfce4"
rm -rf "${pkgdir}/usr/share/mate-panel"
rm -rf "${pkgdir}/usr/share/vala-panel"
rm -rf "${pkgdir}/usr/lib/"
rm -rf "${pkgdir}/usr/share/dbus-1"
}
|