annotate xfce/mousepad/mousepad.sh @ 739:4073582a2911

vanilla: consolidate options
author David Demelier <markand@malikania.fr>
date Tue, 06 Aug 2019 17:25:09 +0200
parents 5f5772c5f176
children e693904f5e20
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
642
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #!/bin/sh
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=mousepad
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=0.4.1
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="GPLv2"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="Xfce simple text editor"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="http://archive.xfce.org/src/apps/$PKGNAME/0.4/$PKGNAME-$PKGVERSION.tar.bz2"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 PKGDEPENDS="graphics/gtk lib/glib"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 PKGOPTIONS="DBUS NLS"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
26
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CHOST:=$(uname -m)-linux-musl}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CBUILD:=$(uname -m)-linux-musl}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CC:=clang}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${CFLAGS:=-O2}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 : ${LDFLAGS:=}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 : ${LIBS:=}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${DBUS:=yes}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 : ${NLS:=yes}
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
35
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 if [ "$DBUS" = "yes" ]; then
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 PKGDEPENDS="lib/dbus-glib $PKGDEPENDS"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 with_dbus="--enable-dbus"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 else
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 with_dbus="--disable-dbus"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 fi
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
42
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 if [ "$NLS" = "yes" ]; then
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 PKGDEPENDS="core/gettext:build $PKGDEPENDS"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 with_nls="--enable-nls"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 else
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 with_nls="--disable-nls"
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 fi
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
49
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 build()
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 {
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 rm -rf $PKGNAME-$PKGVERSION
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 cd $PKGNAME-$PKGVERSION
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
55
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
56 CC="$CC" \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
57 CFLAGS="$CFLAGS" \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 LDFLAGS="$LDFLAGS" \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
59 LIBS="$LIBS" \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
60 ./configure \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
61 --build=$CBUILD \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
62 --host=$CHOST \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
63 --prefix= \
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
64 --enable-gtk3 \
739
4073582a2911 vanilla: consolidate options
David Demelier <markand@malikania.fr>
parents: 642
diff changeset
65 --localedir=/share/locale \
642
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
66 $with_dbus
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
67 make
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
68 make install localedir=/share/locale DESTDIR=$DESTDIR
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
69
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
70 cd ..
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
71 rm -rf $PKGNAME-$PKGVERSION
5f5772c5f176 xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff changeset
72 }