mate/mate-common/mate-common.sh

Fri, 15 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:05:00 +0100
changeset 1207
c9592a9a949b
parent 1107
7791d3dbfecf
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1019
ddab65a5b3f5 vanilla: use /bin/busybox sh as default shell
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
1 #!/bin/busybox sh
352
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=mate-common
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=1.22.0
8ff7a13328fd mate/mate-common: initial import, closes #1450
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="GPLv30"
352
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="MATE common development macros"
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://pub.mate-desktop.org/releases/1.22/$PKGNAME-$PKGVERSION.tar.xz"
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
24
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 : ${CHOST:=$(uname -m)-linux-musl}
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 : ${CBUILD:=$(uname -m)-linux-musl}
494
2f9967c0f741 mate: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 352
diff changeset
27 : ${CC:=clang}
352
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CFLAGS:=-O2}
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${LDFLAGS:=}
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${LIBS:=}
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
31
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 build()
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 {
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
35 tar xvf $PKGNAME-$PKGVERSION.tar.xz
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
36 cd $PKGNAME-$PKGVERSION
352
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
37
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 CC="$CC" \
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 CFLAGS="$CFLAGS" \
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 LDFLAGS="$LDFLAGS" \
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 LIBS="$LIBS" \
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 ./configure \
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 --build=$CBUILD \
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 --host=$CHOST \
549
bad483aace64 vanilla: use prefix= instead
David Demelier <markand@malikania.fr>
parents: 530
diff changeset
45 --prefix=
352
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 make
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 make install DESTDIR=$DESTDIR
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
48
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
49 cd ..
352
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 rm -rf $PKGNAME-$PKGVERSION
8ff7a13328fd mate/mate-common: initial import, closes #1450
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 }

mercurial