eth0s/ports/core/gpm/Pkgfile

42 lines
1 KiB
Text
Raw Normal View History

2019-11-11 06:05:48 +08:00
# Description: Mouse server for the console and xterm
# URL: https://www.nico.schottelius.org/software/gpm/
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
# Depends on:
name=gpm
version=1.20.7
2021-04-18 08:19:42 +08:00
bootscriptsversion=20210110
2019-11-11 06:05:48 +08:00
release=1
source=(https://www.nico.schottelius.org/software/gpm/archives/$name-$version.tar.bz2
2020-11-13 13:58:01 +08:00
gpm-1.20.7-consolidated-1.patch
2019-11-11 06:05:48 +08:00
http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-$bootscriptsversion.tar.xz)
build() {
cd $name-$version
2020-11-13 13:58:01 +08:00
patch -Np1 -i ../gpm-1.20.7-consolidated-1.patch
2019-11-11 06:05:48 +08:00
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc
make
make DESTDIR=$PKG install
ln -sfv libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so
install -v -m644 conf/gpm-root.conf $PKG/etc
# rc service
cd ../blfs-bootscripts-$bootscriptsversion
make DESTDIR=$PKG install-gpm
mkdir -p $PKG/etc/sysconfig
cat > $PKG/etc/sysconfig/mouse << "EOF"
# Begin /etc/sysconfig/mouse
MDEVICE="/dev/input/mice"
PROTOCOL="imps2"
GPMOPTS=""
# End /etc/sysconfig/mouse
EOF
}