Mercurial > vanilla
comparison terminals/xterm/xterm.sh @ 438:c3114738e828
terminals/xterm: initial import, closes #1549
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 05 Apr 2019 20:07:00 +0200 |
parents | |
children | 32de384fc96f |
comparison
equal
deleted
inserted
replaced
437:81e8f2b26678 | 438:c3114738e828 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=xterm | |
19 PKGVERSION=344 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="X terminal emulator" | |
22 PKGSUMMARY="CUSTOM" | |
23 PKGDOWNLOAD="ftp://ftp.invisible-island.net/pub/$PKGNAME/$PKGNAME-$PKGVERSION.tgz" | |
24 PKGDEPENDS="x11/luit" | |
25 PKGOPTIONS="FREETYPE" | |
26 | |
27 : ${CHOST:=$(uname -m)-linux-musl} | |
28 : ${CBUILD:=$(uname -m)-linux-musl} | |
29 : ${CC:=clang} | |
30 : ${CFLAGS:=-O2} | |
31 : ${LDFLAGS:=} | |
32 : ${LIBS:=} | |
33 : ${FREETYPE:=yes} | |
34 | |
35 if [ "$FREETYPE" = "yes" ]; then | |
36 PKGDEPENDS="fonts/freetype $PKGDEPENDS" | |
37 with_freetype="--enable-freetype" | |
38 else | |
39 with_freetype="--disable-freetype" | |
40 fi | |
41 | |
42 build() | |
43 { | |
44 rm -rf $PKGNAME-$PKGVERSION | |
45 tar xvaf $PKGNAME-$PKGVERSION.tgz | |
46 pushd $PKGNAME-$PKGVERSION | |
47 | |
48 CC="$CC" \ | |
49 CFLAGS="$CFLAGS" \ | |
50 LDFLAGS="$LDFLAGS" \ | |
51 LIBS="$LIBS" \ | |
52 ./configure \ | |
53 --build=$CBUILD \ | |
54 --host=$CHOST \ | |
55 --prefix=/usr \ | |
56 --enable-luit \ | |
57 $with_freetype | |
58 make | |
59 make install DESTDIR=$DESTDIR | |
60 | |
61 # Those are not installed from the Makefile even though pixmaps are, so | |
62 # install them anyway. | |
63 install -Dm0644 xterm.desktop $DESTDIR/usr/share/applications/xterm.desktop | |
64 install -Dm0644 uxterm.desktop $DESTDIR/usr/share/applications/uxterm.desktop | |
65 | |
66 popd | |
67 rm -rf $PKGNAME-$PKGVERSION | |
68 } |