Mercurial > vanilla
comparison x11/xcompmgr/xcompmgr.sh @ 310:a2f05e60be7b
x11/xcompmgr: initial import, closes #1354
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 26 Mar 2019 20:05:00 +0100 |
parents | |
children | 2416430cff0b |
comparison
equal
deleted
inserted
replaced
309:6afa91d6d75b | 310:a2f05e60be7b |
---|---|
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=xcompmgr | |
19 PKGVERSION=1.1.8 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="CUSTOM" | |
22 PKGSUMMARY="X.Org composite window-effects manager" | |
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz" | |
24 PKGDEPENDS="x11/libxcomposite | |
25 x11/libxdamage | |
26 x11/libxext | |
27 x11/libxfixes | |
28 x11/libxrender | |
29 x11/util-macros:build | |
30 x11/xorgproto:build" | |
31 | |
32 : ${CHOST:=$(uname -m)-linux-musl} | |
33 : ${CBUILD:=$(uname -m)-linux-musl} | |
34 : ${CC:=gcc} | |
35 : ${CFLAGS:=-O2} | |
36 : ${LDFLAGS:=} | |
37 : ${LIBS:=} | |
38 | |
39 build() | |
40 { | |
41 rm -rf $PKGNAME-$PKGVERSION | |
42 tar xvaf $PKGNAME-$PKGVERSION.tar.gz | |
43 pushd $PKGNAME-$PKGVERSION | |
44 | |
45 CC="$CC" \ | |
46 CFLAGS="$CFLAGS" \ | |
47 LDFLAGS="$LDFLAGS" \ | |
48 LIBS="$LIBS" \ | |
49 ./configure \ | |
50 --build=$CBUILD \ | |
51 --host=$CHOST \ | |
52 --prefix=/usr | |
53 make | |
54 make install DESTDIR=$DESTDIR | |
55 | |
56 popd | |
57 rm -rf $PKGNAME-$PKGVERSION | |
58 } |