Mercurial > vanilla
annotate xfce/mousepad/mousepad.sh @ 1185:6ac8b545df56
vanilla: use busybox add-shell/remove-shell for post scripts
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 28 Oct 2019 20:05:00 +0100 |
parents | 297b5eef115e |
children | 6710613b88b9 |
rev | line source |
---|---|
1115
297b5eef115e
vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
1 #!/bin/sh |
642
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 |
796
e693904f5e20
xfce: upgrade to 4.14
David Demelier <markand@malikania.fr>
parents:
739
diff
changeset
|
19 PKGVERSION=0.4.2 |
642
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
20 PKGREVISION=1 |
1107
7791d3dbfecf
vanilla: consolidate licenses and many options
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
21 PKGLICENSE="GPLv20" |
642
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" |
902
a133976e0783
vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents:
831
diff
changeset
|
24 PKGDEPENDS="gtk glib" |
642
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 |
902
a133976e0783
vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents:
831
diff
changeset
|
37 PKGDEPENDS="dbus-glib $PKGDEPENDS" |
642
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 |
902
a133976e0783
vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents:
831
diff
changeset
|
44 PKGDEPENDS="gettext $PKGDEPENDS" |
642
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 \ |
796
e693904f5e20
xfce: upgrade to 4.14
David Demelier <markand@malikania.fr>
parents:
739
diff
changeset
|
66 --with-locales-dir=/share/locale \ |
642
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
67 $with_dbus |
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
68 make |
796
e693904f5e20
xfce: upgrade to 4.14
David Demelier <markand@malikania.fr>
parents:
739
diff
changeset
|
69 make install DESTDIR=$DESTDIR |
642
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
70 |
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
71 cd .. |
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
72 rm -rf $PKGNAME-$PKGVERSION |
5f5772c5f176
xfce/mousepad: initial import, closes #1719
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
73 } |