| Name |
gpm |
| Description |
A mouse server for the console and xterm |
| Version |
1.20.7.r38.ge82d1a6-6 |
| Package Base |
gpm |
| Homepage |
https://www.nico.schottelius.org/software/gpm/ |
| Maintainers |
['Christian Hesse <eworm@archlinux.org>', 'Eric Bélanger <eric@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/gpm |
| Sources |
['git+https://github.com/telmich/gpm.git#commit=e82d1a653ca94aa4ed12441424da6ce780b1e530', 'gpm.path', 'gpm.service', 'gpm.sh'] |
| Dependencies |
['bash', 'procps-ng'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['git'] |
| Provides |
['libgpm.so'] |
| Builddate |
23-07-2024 20:19:03 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL'] |
| Hash |
95b97f61aacc075e85465a7d5e1c99d1b249b4eba63081a170482cdc8791f799 |
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=gpm
pkgver=1.20.7.r38.ge82d1a6
_commit='e82d1a653ca94aa4ed12441424da6ce780b1e530'
pkgrel=6
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')
provides=('libgpm.so')
options=('!makeflags')
source=("git+https://github.com/telmich/gpm.git#commit=${_commit}"
'gpm.sh'
'gpm.path'
'gpm.service')
sha256sums=('7db4089030c128d9ee5fb1afb08251d328f8f8835e4716ff41c6c08c1a90bed2'
'f41e90dcf6c0c6c4b8eff1c69039a20eb6b38ea851ffd1fa47ba311bf83d6ed8'
'1b8712650c70fd139f844fa754e288bfe05a8ed8044d118fda75a47d66034d23'
'dbce5688b3ba1d5bc9c4f38bcc2d89a6d68d51b30fb5d6d29a02d0c011d3688e')
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}"
# fix build with gcc-15
CFLAGS+=" -std=gnu17"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin
make
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
install -D -m0644 ../gpm.sh "${pkgdir}/etc/profile.d/gpm.sh"
install -D -m0644 ../gpm.path "${pkgdir}/usr/lib/systemd/system/gpm.path"
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.*
}