Mercurial > vanilla
comparison x11/xmag/xmag.sh @ 298:cbd41246ea29
x11/xmag: initial import, closes #1376
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 25 Mar 2019 12:28:23 +0100 |
parents | |
children | 2416430cff0b |
comparison
equal
deleted
inserted
replaced
297:e3f4e8b13098 | 298:cbd41246ea29 |
---|---|
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=xmag | |
19 PKGVERSION=1.0.6 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="CUSTOM" | |
22 PKGSUMMARY="X.Org tool to magnify parts of the screen" | |
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz" | |
24 PKGDEPENDS="x11/libx11 | |
25 x11/libxaw | |
26 x11/libxmu | |
27 x11/libxt | |
28 x11/util-macros:build | |
29 x11/xorgproto:build" | |
30 | |
31 : ${CHOST:=$(uname -m)-linux-musl} | |
32 : ${CBUILD:=$(uname -m)-linux-musl} | |
33 : ${CC:=gcc} | |
34 : ${CFLAGS:=-O2} | |
35 : ${LDFLAGS:=} | |
36 : ${LIBS:=} | |
37 | |
38 build() | |
39 { | |
40 rm -rf $PKGNAME-$PKGVERSION | |
41 tar xvaf $PKGNAME-$PKGVERSION.tar.gz | |
42 pushd $PKGNAME-$PKGVERSION | |
43 | |
44 CC="$CC" \ | |
45 CFLAGS="$CFLAGS" \ | |
46 LDFLAGS="$LDFLAGS" \ | |
47 LIBS="$LIBS" \ | |
48 ./configure \ | |
49 --build=$CBUILD \ | |
50 --host=$CHOST \ | |
51 --prefix=/usr | |
52 make | |
53 make install DESTDIR=$DESTDIR | |
54 | |
55 popd | |
56 rm -rf $PKGNAME-$PKGVERSION | |
57 } |