annotate mate/libmateweather/libmateweather.sh @ 1218:57dc83a39b13

misc: switch back to standard FHS
author David Demelier <markand@malikania.fr>
date Thu, 30 Sep 2021 08:58:34 +0200
parents 27d1a83dc8d6
children 337f950c30f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1217
27d1a83dc8d6 misc: change shebang to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1216
diff changeset
1 #!/bin/sh
457
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=libmateweather
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=1.22.0
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
616
4d7cd08912f9 vanilla: add all sha1 files
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
21 PKGLICENSE="LGPLv21"
457
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="MATE weather library"
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://pub.mate-desktop.org/releases/1.22/$PKGNAME-$PKGVERSION.tar.xz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
24 PKGDEPENDS="gtk
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
25 glib
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
26 libsoup
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
27 libxml2"
457
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
28
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CHOST:=$(uname -m)-linux-musl}
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${CBUILD:=$(uname -m)-linux-musl}
494
2f9967c0f741 mate: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 457
diff changeset
31 : ${CC:=clang}
457
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 : ${CFLAGS:=-O2}
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${LDFLAGS:=}
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 : ${LIBS:=}
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
35
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
36 rm -rf $PKGNAME-$PKGVERSION
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
37 tar xvf $PKGNAME-$PKGVERSION.tar.xz
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
38 cd $PKGNAME-$PKGVERSION
457
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
39
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
40 CC="$CC" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
41 CFLAGS="$CFLAGS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
42 LDFLAGS="$LDFLAGS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
43 LIBS="$LIBS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
44 ./configure \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
45 --build=$CBUILD \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
46 --host=$CHOST \
1218
57dc83a39b13 misc: switch back to standard FHS
David Demelier <markand@malikania.fr>
parents: 1217
diff changeset
47 --prefix=/usr
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
48 make
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
49 make install DESTDIR=$DESTDIR
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
50 find $DESTDIR -type f -name "*.la" -delete
457
461d3fe82b7d mate/libmateweather: initial import, closes #1445
David Demelier <markand@malikania.fr>
parents:
diff changeset
51
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
52 cd ..
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
53 rm -rf $PKGNAME-$PKGVERSION