comparison xfce/xfce4-panel/xfce4-panel.sh @ 445:a58d58a62056

xfce/xfce4-panel: initial import, closes #1498
author David Demelier <markand@malikania.fr>
date Fri, 05 Apr 2019 12:56:31 +0200
parents
children ca639101cecc
comparison
equal deleted inserted replaced
444:b159c8eec432 445:a58d58a62056
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=xfce4-panel
19 PKGVERSION=4.12.0
20 PKGREVISION=1
21 PKGLICENSE="GPLv2 LGPLv21"
22 PKGSUMMARY="Xfce panel"
23 PKGDOWNLOAD="http://archive.xfce.org/xfce/4.12/src/$PKGNAME-$PKGVERSION.tar.bz2"
24 PKGDEPENDS="desktop/libwnck2
25 graphics/cairo
26 graphics/gtk2
27 graphics/gtk3
28 lib/dbus-glib
29 lib/glib
30 x11/libx11
31 xfce/exo
32 xfce/libxfce4ui
33 xfce/libxfce4util
34 xfce/xfconf"
35
36 : ${CHOST:=$(uname -m)-linux-musl}
37 : ${CBUILD:=$(uname -m)-linux-musl}
38 : ${CC:=clang}
39 : ${CFLAGS:=-O2}
40 : ${LDFLAGS:=}
41 : ${LIBS:=}
42
43 build()
44 {
45 rm -rf $PKGNAME-$PKGVERSION
46 tar xvaf $PKGNAME-$PKGVERSION.tar.bz2
47 pushd $PKGNAME-$PKGVERSION
48
49 CC="$CC" \
50 CFLAGS="$CFLAGS" \
51 LDFLAGS="$LDFLAGS" \
52 LIBS="$LIBS" \
53 ./configure \
54 --build=$CBUILD \
55 --host=$CHOST \
56 --prefix=/usr \
57 --sysconfdir=/etc \
58 --enable-gtk3 \
59 --localedir=/usr/share/locale \
60 --with-locales-dir=/usr/share/locale
61 make
62 make install DESTDIR=$DESTDIR itlocaledir=/usr/share/locale
63 rm -f $DESTDIR/usr/lib/libxfce4panel-*.la
64 rm -f $DESTDIR/usr/lib/xfce4/panel/plugins/*.la
65
66 popd
67 rm -rf $PKGNAME-$PKGVERSION
68 }