irc/irssi/irssi.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 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1107
diff changeset
1 #!/bin/sh
619
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=irssi
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=1.2.1
a4dd42f62111 irc/irssi: initial import, closes #1276
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: 1094
diff changeset
21 PKGLICENSE="GPLv20+"
619
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="command line IRC client"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://github.com/irssi/irssi/releases/download/$PKGVERSION/$PKGNAME-$PKGVERSION.tar.xz"
1094
3dece1f7570b vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
24 PKGDEPENDS="glib libressl ncurses"
619
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 PKGOPTIONS="PERL TRUECOLOR"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 PKGPROTECT="etc/irssi.conf"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
27
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CHOST:=$(uname -m)-linux-musl}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CBUILD:=$(uname -m)-linux-musl}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${CC:=clang}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 : ${CFLAGS:=-O2}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 : ${LDFLAGS:=}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${LIBS:=}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 : ${PERL:=yes}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 : ${TRUECOLOR:=yes}
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
36
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 if [ "$PERL" = "yes" ]; then
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
38 PKGDEPENDS="perl $PKGDEPENDS"
619
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 with_perl="--with-perl=module --with-perl-lib=vendor"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 else
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 with_perl="--with-perl=no"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 fi
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
43
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 if [ "$TRUECOLOR" = "yes" ]; then
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 with_truecolor="--enable-true-color"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 else
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 with_truecolor="--disable-true-color"
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 fi
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
49
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 build()
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 {
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 rm -rf $PKGNAME-$PKGVERSION
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 tar xvf $PKGNAME-$PKGVERSION.tar.xz
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 cd $PKGNAME-$PKGVERSION
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
55
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
56 CC="$CC" \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
57 CFLAGS="$CFLAGS" \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 LDFLAGS="$LDFLAGS" \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
59 LIBS="$LIBS" \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
60 ./configure \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
61 --build=$CBUILD \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
62 --host=$CHOST \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
63 --prefix= \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
64 --enable-shared \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
65 $with_perl \
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
66 $with_truecolor
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
67 make
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
68 make install DESTDIR=$DESTDIR
817
0e6c54d47dfb vanilla: fix many FHS issues
David Demelier <markand@malikania.fr>
parents: 745
diff changeset
69 find $DESTDIR -type f -name "*.la" -delete
619
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
70
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
71 cd ..
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
72 rm -rf $PKGNAME-$PKGVERSION
a4dd42f62111 irc/irssi: initial import, closes #1276
David Demelier <markand@malikania.fr>
parents:
diff changeset
73 }

mercurial