comparison x11/luit/luit.sh @ 437:81e8f2b26678

x11/luit: initial import, closes #1548
author David Demelier <markand@malikania.fr>
date Fri, 05 Apr 2019 20:05:00 +0200
parents
children cacbd9d3d3a8
comparison
equal deleted inserted replaced
436:04ed9ecf47d4 437:81e8f2b26678
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=luit
19 PKGVERSION=1.1.1
20 PKGREVISION=1
21 PKGLICENSE=""
22 PKGSUMMARY=""
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="x11/libfontenc
25 x11/libx11
26 x11/util-macros:build
27 x11/xorgproto:build"
28
29 : ${CC:=clang}
30 : ${CFLAGS:=-O2}
31 : ${LDFLAGS:=}
32 : ${LIBS:=}
33
34 build()
35 {
36 rm -rf $PKGNAME-$PKGVERSION
37 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
38 pushd $PKGNAME-$PKGVERSION
39
40 CC="$CC" \
41 CFLAGS="$CFLAGS" \
42 LDFLAGS="$LDFLAGS" \
43 LIBS="$LIBS" \
44 ./configure --prefix=/usr
45 make
46 make install DESTDIR=$DESTDIR
47
48 popd
49 rm -rf $PKGNAME-$PKGVERSION
50 }