comparison x11/xf86-input-libinput/xf86-input-libinput.sh @ 312:e1aaf5a580c6

x11/xf86-input-libinput: initial import, closes #1364
author David Demelier <markand@malikania.fr>
date Tue, 26 Mar 2019 20:10:00 +0100
parents
children 2416430cff0b
comparison
equal deleted inserted replaced
311:22907b0e8bfe 312:e1aaf5a580c6
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=xf86-input-libinput
19 PKGVERSION=0.28.2
20 PKGREVISION=1
21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="X.Org input driver for libinput"
23 PKGDOWNLOAD="https://www.x.org/releases/individual/driver/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="lib/libinput
25 x11/util-macros:build
26 x11/xorg-server
27 x11/xorgproto:build"
28
29 : ${CHOST:=$(uname -m)-linux-musl}
30 : ${CBUILD:=$(uname -m)-linux-musl}
31 : ${CC:=gcc}
32 : ${CFLAGS:=-O2}
33 : ${LDFLAGS:=}
34 : ${LIBS:=}
35
36 build()
37 {
38 rm -rf $PKGNAME-$PKGVERSION
39 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
40 pushd $PKGNAME-$PKGVERSION
41
42 CC="$CC" \
43 CFLAGS="$CFLAGS" \
44 LDFLAGS="$LDFLAGS" \
45 LIBS="$LIBS" \
46 ./configure \
47 --build=$CBUILD \
48 --host=$CHOST \
49 --prefix=/usr
50 make
51 make install DESTDIR=$DESTDIR
52 rm -f $DESTDIR/usr/lib/xorg/modules/input/libinput_drv.la
53
54 popd
55 rm -rf $PKGNAME-$PKGVERSION
56 }