1 src_name
=xf86-input-evdev
2 git_commit
=${pkg_name##*-}
4 git_url0
=git
://gitlab.freedesktop.org
/xorg
/driver
/$src_name
6 src_dir
=$src_dir_root/$src_name
7 pkg_dir
=$pkgs_dir_root/$pkg_name
8 mkdir
-p $pkgs_dir_root
10 cp -r $src_dir $pkg_dir
14 if test x
$git_commit != x
; then
15 git checkout
--force $git_commit
20 export PATH
=$sdk_autoconf_path/bin
:$sdk_automake_path/bin
:$sdk_libtool_path/bin
:$PATH
21 export "ACLOCAL_PATH=\
22 /nyan/pkg-config/current/share/aclocal:\
23 /nyan/libtool/current/share/aclocal:\
24 /nyan/util-macro/current/share/aclocal"
30 export PATH
=$PATH_SAVED
33 build_dir
=$builds_dir_root/$pkg_name
38 export "PKG_CONFIG_LIBDIR=\
39 /nyan/mudev/current/lib/pkgconfig:\
40 /nyan/mtdev/current/lib/pkgconfig:\
41 /nyan/libevdev/current/lib/pkgconfig:\
42 /nyan/drm/current/lib/pkgconfig:\
43 /nyan/mesa-gl/current/lib/pkgconfig:\
44 /nyan/pixman/current/lib/pkgconfig:\
45 /nyan/libpciaccess/current/lib/pkgconfig:\
46 /nyan/xserver/current/lib/pkgconfig:\
47 /nyan/xorgproto/current/share/pkgconfig:\
48 /nyan/util-macro/current/share/pkgconfig"
51 export 'CPPFLAGS=-I/nyan/mtdev/current/include -I/nyan/mudev/current/include'
52 export 'CFLAGS=-O2 -pipe -fPIC'
53 export "CC=gcc -isystem /nyan/glibc/current/include -isystem /nyan/linux-headers/current/include -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc"
54 $pkg_dir/configure
--prefix=/nyan
/xf86-input-evdev
/$slot
63 rm -Rf /nyan
/$src_name/$slot/share
/man
64 rm -f /nyan
/$src_name/$slot/lib
/xorg
/modules
/input
/*.la
65 strip
-s /nyan
/$src_name/$slot/lib
/xorg
/modules
/input
/*.so || true
67 rm -Rf $build_dir $pkg_dir