Mercurial > vanilla
comparison xfce/xfce4-appfinder/xfce4-appfinder.sh @ 789:0ea4cabfa7e4
xfce/xfce4-appfinder: initial import, closes #1496
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 12 Aug 2019 16:20:54 +0200 |
parents | |
children | ae55d9077f70 |
comparison
equal
deleted
inserted
replaced
788:6a808b0ef460 | 789:0ea4cabfa7e4 |
---|---|
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-appfinder | |
19 PKGVERSION=4.14.0 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="GPLv2" | |
22 PKGSUMMARY="Xfce applications finder" | |
23 PKGDOWNLOAD="http://archive.xfce.org/xfce/${PKGVERSION%.*}/src/$PKGNAME-$PKGVERSION.tar.bz2" | |
24 PKGDEPENDS="graphics/gtk | |
25 lib/glib | |
26 xfce/garcon | |
27 xfce/libxfce4ui | |
28 xfce/libxfce4util | |
29 xfce/xfconf" | |
30 PKGOPTIONS="NLS" | |
31 | |
32 : ${CHOST:=$(uname -m)-linux-musl} | |
33 : ${CBUILD:=$(uname -m)-linux-musl} | |
34 : ${CC:=clang} | |
35 : ${CFLAGS:=-O2} | |
36 : ${LDFLAGS:=} | |
37 : ${LIBS:=} | |
38 : ${NLS:=yes} | |
39 | |
40 if [ "$NLS" = "yes" ]; then | |
41 PKGDEPENDS="core/gettext:build $PKGDEPENDS" | |
42 with_nls="--enable-nls" | |
43 else | |
44 with_nls="--disable-nls" | |
45 fi | |
46 | |
47 build() | |
48 { | |
49 rm -rf $PKGNAME-$PKGVERSION | |
50 tar xvf $PKGNAME-$PKGVERSION.tar.bz2 | |
51 cd $PKGNAME-$PKGVERSION | |
52 | |
53 CC="$CC" \ | |
54 CFLAGS="$CFLAGS" \ | |
55 LDFLAGS="$LDFLAGS" \ | |
56 LIBS="$LIBS" \ | |
57 ./configure \ | |
58 --build=$CBUILD \ | |
59 --host=$CHOST \ | |
60 --prefix= \ | |
61 --localedir=/share/locale \ | |
62 --with-locales-dir=/share/locale \ | |
63 $with_nls | |
64 make | |
65 make install DESTDIR=$DESTDIR | |
66 | |
67 cd .. | |
68 rm -rf $PKGNAME-$PKGVERSION | |
69 } |