desktop/libwnck/libwnck.sh

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

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:11:00 +0100
changeset 1210
422313c3fcbd
parent 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

text/rarian: initial import, closes #2311

1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
1 #!/bin/sh
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=libwnck
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=3.31.4
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="LGPLv20"
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="window navigator construction kit"
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/3.31/$PKGNAME-$PKGVERSION.tar.xz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
24 PKGDEPENDS="startup-notification gobject-introspection"
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
464
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
26 : ${CHOST:=$(uname -m)-linux-musl}
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
27 : ${CBUILD:=$(uname -m)-linux-musl}
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
28 : ${CC:=clang}
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CFLAGS:=-O2}
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${LDFLAGS:=}
464
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
31 : ${LIBS:=}
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
32
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 build()
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 {
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
36 tar xvf $PKGNAME-$PKGVERSION.tar.xz
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
37 cd $PKGNAME-$PKGVERSION
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
38
464
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
39 NOCONFIGURE=1 ./autogen.sh
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 CC="$CC" \
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 CFLAGS="$CFLAGS" \
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 LDFLAGS="$LDFLAGS" \
464
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
43 LIBS="$LIBS" \
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
44 ./configure \
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
45 --build=$CBUILD \
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
46 --host=$CHOST \
549
bad483aace64 vanilla: use prefix= instead
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
47 --prefix=
464
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
48 make
e5970694cd9c desktop/libwnck: switch back to autotools
David Demelier <markand@malikania.fr>
parents: 402
diff changeset
49 make install DESTDIR=$DESTDIR
817
0e6c54d47dfb vanilla: fix many FHS issues
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
50 find $DESTDIR -type f -name "*.la" -delete
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
51
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
52 cd ..
402
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 rm -rf $PKGNAME-$PKGVERSION
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 }
b93b27c5c22b desktop/libwnck: initial import, closes #1484
David Demelier <markand@malikania.fr>
parents:
diff changeset
55

mercurial