Mercurial > vanilla
comparison x11/xcb-util-image/xcb-util-image.sh @ 324:e32d03f5395e
x11/xcb-util-image: initial import, closes #1349
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 26 Mar 2019 20:36:00 +0100 |
parents | |
children | 2416430cff0b |
comparison
equal
deleted
inserted
replaced
323:4616f2ad75ad | 324:e32d03f5395e |
---|---|
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=xcb-util-image | |
19 PKGVERSION=0.4.0 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="CUSTOM" | |
22 PKGSUMMARY="X.Org image utilities for XCB" | |
23 PKGDOWNLOAD="https://xcb.freedesktop.org/dist/$PKGNAME-$PKGVERSION.tar.gz" | |
24 PKGDEPENDS="x11/libxcb x11/xcb-util" | |
25 | |
26 : ${CHOST:=$(uname -m)-linux-musl} | |
27 : ${CBUILD:=$(uname -m)-linux-musl} | |
28 : ${CC:=gcc} | |
29 : ${CFLAGS:=-O2} | |
30 : ${LDFLAGS:=} | |
31 : ${LIBS:=} | |
32 | |
33 build() | |
34 { | |
35 rm -rf $PKGNAME-$PKGVERSION | |
36 tar xvaf $PKGNAME-$PKGVERSION.tar.gz | |
37 pushd $PKGNAME-$PKGVERSION | |
38 | |
39 CC="$CC" \ | |
40 CFLAGS="$CFLAGS" \ | |
41 LDFLAGS="$LDFLAGS" \ | |
42 LIBS="$LIBS" \ | |
43 ./configure \ | |
44 --build=$CBUILD \ | |
45 --host=$CHOST \ | |
46 --prefix=/usr \ | |
47 --disable-static \ | |
48 --enable-shared | |
49 make | |
50 make install DESTDIR=$DESTDIR | |
51 rm -f $DESTDIR/usr/lib/libxcb-image.la | |
52 | |
53 popd | |
54 rm -rf $PKGNAME-$PKGVERSION | |
55 } |