comparison mate/mate-panel/mate-panel.sh @ 466:65ca4a792536

mate/mate-panel: initial import, closes #1459
author David Demelier <markand@malikania.fr>
date Sat, 06 Apr 2019 11:21:21 +0200
parents
children 2f9967c0f741
comparison
equal deleted inserted replaced
465:e0c302f2fa8c 466:65ca4a792536
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 PKGNAME=mate-panel
19 PKGVERSION=1.22.0
20 PKGREVISION=1
21 PKGLICENSE="GPLv2 LGPLv20 GFDLv11"
22 PKGSUMMARY="MATE panel"
23 PKGDOWNLOAD="https://pub.mate-desktop.org/releases/1.22/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGDEPENDS="desktop/dconf
25 desktop/libwnck
26 fonts/pango
27 graphics/gdk-pixbuf
28 graphics/gtk
29 graphics/librsvg
30 lib/glib
31 mate/libmateweather
32 mate/mate-desktop
33 mate/mate-menus"
34 PKGOPTIONS="WAYLAND X"
35
36 : ${CHOST:=$(uname -m)-linux-musl}
37 : ${CBUILD:=$(uname -m)-linux-musl}
38 : ${CC:=gcc}
39 : ${CFLAGS:=-O2}
40 : ${LDFLAGS:=}
41 : ${LIBS:=}
42 : ${WAYLAND:=yes}
43 : ${X:=yes}
44
45 if [ "$WAYLAND" = "yes" ]; then
46 PKGDEPENDS="graphics/wayland $PKGDEPENDS"
47 with_wayland="--enable-wayland"
48 else
49 with_wayland="--disable-wayland"
50 fi
51
52 if [ "$X" = "yes" ]; then
53 PKGDEPENDS="x11/libx11 x11/libxau $PKGDEPENDS"
54 with_x="--enable-x11"
55 else
56 with_x="--disable-x11"
57 fi
58
59 build()
60 {
61 rm -rf $PKGNAME-$PKGVERSION
62 tar xvaf $PKGNAME-$PKGVERSION.tar.xz
63 pushd $PKGNAME-$PKGVERSION
64
65 CC="$CC" \
66 CFLAGS="$CFLAGS" \
67 LDFLAGS="$LDFLAGS" \
68 LIBS="$LIBS" \
69 ./configure \
70 --build=$CBUILD \
71 --host=$CHOST \
72 --prefix=/usr \
73 --disable-static \
74 --enable-shared \
75 $with_wayland \
76 $with_x
77 make
78 make install DESTDIR=$DESTDIR
79 rm -f $DESTDIR/usr/lib/libmate-panel-applet-4.la
80
81 popd
82 rm -rf $PKGNAME-$PKGVERSION
83 }