comparison xfce/xfce4-screenshooter/xfce4-screenshooter.sh @ 790:bb33036bcd39

xfce/xfce4-screenshoter: initial import, closes #1770
author David Demelier <markand@malikania.fr>
date Mon, 12 Aug 2019 16:32:46 +0200
parents
children 0e6c54d47dfb
comparison
equal deleted inserted replaced
789:0ea4cabfa7e4 790:bb33036bcd39
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-screenshooter
19 PKGVERSION=1.9.5
20 PKGREVISION=1
21 PKGLICENSE="GPLv2"
22 PKGSUMMARY="Xfce screenshoot utility"
23 PKGDOWNLOAD="http://archive.xfce.org/src/apps/$PKGNAME/${PKGVERSION%.*}/$PKGNAME-$PKGVERSION.tar.bz2"
24 PKGDEPENDS="graphics/gtk
25 lib/glib
26 network/libsoup
27 text/libxml2
28 x11/libx11
29 x11/libxext
30 x11/libxfixes
31 xfce/exo
32 xfce/libxfce4ui
33 xfce/libxfce4util
34 xfce/xfce4-panel"
35 PKGOPTIONS="NLS"
36
37 : ${CHOST:=$(uname -m)-linux-musl}
38 : ${CBUILD:=$(uname -m)-linux-musl}
39 : ${CC:=clang}
40 : ${CFLAGS:=-O2}
41 : ${LDFLAGS:=}
42 : ${LIBS:=}
43 : ${NLS:=yes}
44
45 if [ "$NLS" = "yes" ]; then
46 PKGDEPENDS="core/gettext:build $PKGDEPENDS"
47 with_nls="--enable-nls"
48 else
49 with_nls="--disable-nls"
50 fi
51
52 build()
53 {
54 rm -rf $PKGNAME-$PKGVERSION
55 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
56 cd $PKGNAME-$PKGVERSION
57
58 CC="$CC" \
59 CFLAGS="$CFLAGS" \
60 LDFLAGS="$LDFLAGS" \
61 LIBS="$LIBS" \
62 ./configure \
63 --build=$CBUILD \
64 --host=$CHOST \
65 --prefix= \
66 --disable-debug \
67 --localedir=/share/locale \
68 --with-locales-dir=/share/locale \
69 $with_nls
70 make
71 make install DESTDIR=$DESTDIR
72 rm -f DESTDIR/lib/xfce4/panel/plugins/libscreenshooterplugin.la
73
74 cd ..
75 rm -rf $PKGNAME-$PKGVERSION
76 }