annotate x11/libpthread-stubs/libpthread-stubs.sh @ 1288:9867e578b1a9

misc: update copyright years
author David Demelier <markand@malikania.fr>
date Tue, 16 Nov 2021 14:49:42 +0100
parents 325631424c65
children 7e62919ec1c2
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
202
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
1288
9867e578b1a9 misc: update copyright years
David Demelier <markand@malikania.fr>
parents: 1222
diff changeset
3 # Copyright (c) 2019-2021 David Demelier <markand@malikania.fr>
202
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
1221
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
18 PKGNAME=libpthread-stubs
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
19 PKGVERSION=0.4
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
20 PKGREVISION=1
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
21 PKGLICENSE="X11"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
22 PKGSUMMARY="pthread functions for portability"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
23 PKGDOWNLOAD="https://xcb.freedesktop.org/dist/$PKGNAME-$PKGVERSION.tar.gz"
202
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
24
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 : ${CHOST:=$(uname -m)-linux-musl}
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 : ${CBUILD:=$(uname -m)-linux-musl}
439
2416430cff0b x11: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 202
diff changeset
27 : ${CC:=clang}
202
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CFLAGS:=-O2}
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${LDFLAGS:=}
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${LIBS:=}
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
31
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
32 build()
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
33 {
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
34 rm -rf $PKGNAME-$PKGVERSION
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
35 tar xvf $PKGNAME-$PKGVERSION.tar.gz
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
36 cd $PKGNAME-$PKGVERSION
202
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
37
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
38 CC="$CC" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
39 CFLAGS="$CFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
40 LDFLAGS="$LDFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
41 LIBS="$LIBS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
42 ./configure \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
43 --build=$CBUILD \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
44 --host=$CHOST \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
45 --prefix=
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
46 make
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
47 make install DESTDIR=$DESTDIR
202
5de141a57786 x11/libpthread-stubs: initial import, closes #1393
David Demelier <markand@malikania.fr>
parents:
diff changeset
48
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
49 cd ..
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
50 rm -rf $PKGNAME-$PKGVERSION
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
51 }