comparison desktop/libwnck2/libwnck2.sh @ 425:e94f044cd4ee

desktop/libwnck2: initial import, closes #1509
author David Demelier <markand@malikania.fr>
date Thu, 04 Apr 2019 13:58:39 +0200
parents
children 95095aa8fe3d
comparison
equal deleted inserted replaced
424:98c594b38cc5 425:e94f044cd4ee
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=libwnck2
19 PKGVERSION=2.31.0
20 PKGREVISION=1
21 PKGLICENSE="LGPLv20"
22 PKGSUMMARY="window navigator construction kit"
23 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/2.31/libwnck-$PKGVERSION.tar.xz"
24 PKGDEPENDS="desktop/startup-notification
25 dev/gobject-introspection
26 graphics/gdk-pixbuf:build
27 graphics/gtk2
28 x11/libx11
29 x11/libxres"
30
31 : ${CC:=clang}
32 : ${CFLAGS:=-O2}
33 : ${LDFLAGS:=}
34 : ${LIBS:=}
35
36 build()
37 {
38 rm -rf libwnck-$PKGVERSION
39 tar xvaf libwnck-$PKGVERSION.tar.xz
40 pushd libwnck-$PKGVERSION
41
42 CC="$CC" \
43 CFLAGS="$CFLAGS" \
44 LDFLAGS="$LDFLAGS" \
45 LIBS="$LIBS" \
46 ./configure \
47 --prefix=/usr \
48 --disable-static \
49 --enable-shared
50 make
51 make install DESTDIR=$DESTDIR
52 rm -f $DESTDIR/usr/lib/libwnck-1.la
53
54 popd
55 rm -rf libwnck-$PKGVERSION
56 }