[arch-commits] Commit in gpm/repos (4 files)
Christian Hesse
eworm at archlinux.org
Tue Sep 15 06:47:25 UTC 2020
Date: Tuesday, September 15, 2020 @ 06:47:25
Author: eworm
Revision: 396144
archrelease: copy trunk to testing-x86_64
Added:
gpm/repos/testing-x86_64/
gpm/repos/testing-x86_64/PKGBUILD
(from rev 396143, gpm/trunk/PKGBUILD)
gpm/repos/testing-x86_64/gpm.service
(from rev 396143, gpm/trunk/gpm.service)
gpm/repos/testing-x86_64/gpm.sh
(from rev 396143, gpm/trunk/gpm.sh)
-------------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gpm.service | 12 ++++++++++++
gpm.sh | 3 +++
3 files changed, 73 insertions(+)
Copied: gpm/repos/testing-x86_64/PKGBUILD (from rev 396143, gpm/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-09-15 06:47:25 UTC (rev 396144)
@@ -0,0 +1,58 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=gpm
+pkgver=1.20.7.r38.ge82d1a6
+_commit='e82d1a653ca94aa4ed12441424da6ce780b1e530'
+pkgrel=1
+pkgdesc='A mouse server for the console and xterm'
+arch=('x86_64')
+url='https://www.nico.schottelius.org/software/gpm/'
+license=('GPL')
+depends=('bash' 'procps-ng')
+makedepends=('git')
+options=('!makeflags')
+source=("git+https://github.com/telmich/gpm.git#commit=${_commit}"
+ 'gpm.sh'
+ 'gpm.service')
+sha256sums=('SKIP'
+ 'f41e90dcf6c0c6c4b8eff1c69039a20eb6b38ea851ffd1fa47ba311bf83d6ed8'
+ 'dc7d2463f6670ff2c1646a571ffad51f7c603793c25c6f685efad13cbb444034')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+
+ GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"
+ printf '%s.r%s.g%s' \
+ "${GITTAG}" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+
+ ./autogen.sh
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ make DESTDIR="${pkgdir}" install
+ install -D -m0755 ../gpm.sh "${pkgdir}/etc/profile.d/gpm.sh"
+ install -D -m0644 ../gpm.service "${pkgdir}/usr/lib/systemd/system/gpm.service"
+
+# library fixes
+ cd "${pkgdir}/usr/lib/"
+ ln -s libgpm.so.2.* libgpm.so
+ chmod 0755 "${pkgdir}"/usr/lib/libgpm.so.*
+}
Copied: gpm/repos/testing-x86_64/gpm.service (from rev 396143, gpm/trunk/gpm.service)
===================================================================
--- testing-x86_64/gpm.service (rev 0)
+++ testing-x86_64/gpm.service 2020-09-15 06:47:25 UTC (rev 396144)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Virtual console mouse server
+Requires=systemd-udevd.service
+After=systemd-udevd.service
+ConditionPathExists=/dev/input/mice
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/gpm -m /dev/input/mice -t imps2
+
+[Install]
+WantedBy=multi-user.target
Copied: gpm/repos/testing-x86_64/gpm.sh (from rev 396143, gpm/trunk/gpm.sh)
===================================================================
--- testing-x86_64/gpm.sh (rev 0)
+++ testing-x86_64/gpm.sh 2020-09-15 06:47:25 UTC (rev 396144)
@@ -0,0 +1,3 @@
+case $( /usr/bin/tty ) in
+ /dev/tty[0-9]*) [ -n "$(pidof -s gpm)" ] && /usr/bin/disable-paste ;;
+esac
More information about the arch-commits
mailing list