blob: ad2966577af5e6fa517093ef5c945454ce7760f9 (
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
|
pkgname="mate-window-applets"
url="https://github.com/IKRadulov/mate-window-applets"
license=('GPL3')
arch=('i686' 'x86_64')
pkgver=1.4.1
_disable_buttons=0
_disable_menu=0
_disable_title=0
_opts=()
if (("${_disable_buttons}" == 0));then
_opts+=(-D build-window-buttons=true)
msg "Building with buttons"
else
_opts+=(-D build-window-buttons=false)
fi
if (("${_disable_menu}" == 0));then
_opts+=(-D build-window-menu=true)
msg "Building with menu"
else
_opts+=(-D build-window-menu=false)
fi
if (("${_disable_title}" == 0));then
_opts+=(-D build-window-title=true)
msg "Building with title"
else
_opts+=(-D build-window-title=false)
fi
pkgrel=1
makedepends=('meson' 'ninja' 'vala')
depends=('gtk3' 'gdk-pixbuf2' 'libwnck3' 'mate-panel')
source=("git+https://github.com/IKRadulov/${pkgname}")
sha256sums=('SKIP')
build()
{
cd "${srcdir}/${pkgname}"
meson --prefix /usr --buildtype=plain build
cd build
meson configure "${_opts[@]}"
ninja
msg "If you want to disable an applet, edit pkgbuild variables _disable_[applet]"
}
package_mate-window-applets() {
cd "${srcdir}/${pkgname}/build"
DESTDIR="${pkgdir}" ninja install
cd ..
./install-icons.sh "${pkgdir}/usr/share" install
}
|