blob: a3f21b5feaf30585f20a43415783a6c8f3944c74 (
plain)
1 # Description: Console mouse server.
2 # URL: https://www.nico.schottelius.org/software/gpm/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4
5 name=gpm
6 version=1.20.7
7 release=1
8 source=(https://nico.schottelius.org/software/gpm/archives/gpm-$version.tar.bz2
9 gpm-1.20.7-glibc_2.26-1.patch
10 gpm.rc)
11
12 build() {
13 cd gpm-$version
14
15 sed -e 's:<gpm.h>:"headers/gpm.h":' \
16 -i src/prog/{display-buttons,display-coords,get-versions}.c
17
18 patch -p 1 -i $SRC/gpm-1.20.7-glibc_2.26-1.patch
19
20 ./autogen.sh
21
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc
25
26 touch doc/gpm.info
27
28 make
29 make ROOT=$PKG install
30
31 ln -s libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so
32 install -m 0644 conf/gpm-root.conf $PKG//etc
33 install -m 0755 -D $SRC/gpm.rc $PKG/etc/rc.d/gpm
34
35 rm -r $PKG/usr/share/info
36 }
|