New package: gpm-1.20.7.

This commit is contained in:
Juan RP 2013-07-23 08:25:19 +02:00
parent e28a60ed9b
commit 820fd302ee
6 changed files with 67 additions and 0 deletions

View File

@ -1361,3 +1361,4 @@ libraw1394.so.11 libraw1394-2.1.0_1
libqmi-glib.so.0 libqmi-1.4.0_1
libmbim-glib.so.0 libmbim-1.4.0_1
libmm-glib.so.0 libmm-glib-1.0.0_1
libgpm.so.2 libgpm-1.20.7_1

1
srcpkgs/gpm-devel Symbolic link
View File

@ -0,0 +1 @@
gpm

View File

@ -0,0 +1,9 @@
[Unit]
Description=Virtual console mouse server
[Service]
Type=forking
ExecStart=/usr/bin/gpm -m /dev/input/mice -t imps2
[Install]
WantedBy=multi-user.target

3
srcpkgs/gpm/files/gpm.sh Normal file
View File

@ -0,0 +1,3 @@
case $( /usr/bin/tty ) in
/dev/tty[0-9]*) [ -n "$(pgrep gpm)" ] && /usr/bin/disable-paste ;;
esac

52
srcpkgs/gpm/template Normal file
View File

@ -0,0 +1,52 @@
# Template file for 'gpm'
pkgname=gpm
version=1.20.7
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool flex"
makedepends="ncurses-devel libfl-devel"
configure_args="--sbindir=/usr/bin"
short_desc="A mouse server for the console and xterm"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.nico.schottelius.org/software/gpm/"
license="GPL-2"
distfiles="http://www.nico.schottelius.org/software/gpm/archives/${pkgname}-${version}.tar.lzma"
checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
pre_configure() {
./autogen.sh
}
post_install() {
cd ${DESTDIR}/usr/lib
ln -s libgpm.so.2.* libgpm.so
chmod 755 libgpm.so.*
touch ${DESTDIR}/usr/share/info/dir
vinstall ${FILESDIR}/gpm.sh 755 etc/profile.d
vinstall ${FILESDIR}/gpm.service 644 usr/lib/systemd/system
}
gpm-devel_package() {
depends="libgpm-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
libgpm_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
gpm_package() {
systemd_services="gpm.service on"
pkg_install() {
vmove usr
}
}

1
srcpkgs/libgpm Symbolic link
View File

@ -0,0 +1 @@
gpm