comparison x11/xdpyinfo/xdpyinfo.sh @ 305:7358e90d4852

x11/xdpyinfo: initial import, closes #1358
author David Demelier <markand@malikania.fr>
date Mon, 25 Mar 2019 13:02:05 +0100
parents
children 2416430cff0b
comparison
equal deleted inserted replaced
304:15486ae047e2 305:7358e90d4852
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=xdpyinfo
19 PKGVERSION=1.3.2
20 PKGREVISION=1
21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="X.Org tool to display information"
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="x11/libdmx
25 x11/libx11
26 x11/libxcb
27 x11/libxcomposite
28 x11/libxi
29 x11/libxinerama
30 x11/libxrender
31 x11/libxtst
32 x11/util-macros:build
33 x11/xorgproto:build
34 x11/xxf86dga
35 x11/xxf86misc
36 x11/xxf86vm"
37
38 : ${CHOST:=$(uname -m)-linux-musl}
39 : ${CBUILD:=$(uname -m)-linux-musl}
40 : ${CC:=gcc}
41 : ${CFLAGS:=-O2}
42 : ${LDFLAGS:=}
43 : ${LIBS:=}
44
45 build()
46 {
47 rm -rf $PKGNAME-$PKGVERSION
48 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
49 pushd $PKGNAME-$PKGVERSION
50
51 CC="$CC" \
52 CFLAGS="$CFLAGS" \
53 LDFLAGS="$LDFLAGS" \
54 LIBS="$LIBS" \
55 ./configure \
56 --build=$CBUILD \
57 --host=$CHOST \
58 --prefix=/usr
59 make
60 make install DESTDIR=$DESTDIR
61
62 popd
63 rm -rf $PKGNAME-$PKGVERSION
64 }