🔒 Repository is read-only – file editing is disabled.

recipes/core/gpm/PAGBUILD.yaml main

61 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
pkgname: gpm
pkgver: '1.20.7'
pkgrel: '17'
pkgdesc: 'General Purpose Mouse: mouse server for the console and xterm.'
url: 'https://unix.schottelius.org/gpm'
arch: x86_64
depends: []
makedepends:
- autoconf
- automake
- m4
- libtool
- sed
- grep
- bison
source:
- 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz'
- gpm-1.20.7-consolidated-1.patch
- gpm-1.20.7-gcc15_fixes-1.patch
- 'https://www.nico.schottelius.org/software/${pkgname}/archives/${pkgname}-${pkgver}.tar.bz2'
sha256sums:
- 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072
- SKIP
- SKIP
- SKIP
hooks:
  post-install: |
    name=gpm
    version=1.20.7
    release=17
    systemctl enable gpm
build: |
  cd ${pkgname}-${pkgver}

  patch -Np1 -i ../gpm-1.20.7-consolidated-1.patch
  patch -Np1 -i ../gpm-1.20.7-gcc15_fixes-1.patch

  sed -i -e 's:<gpm.h>:"headers/gpm.h":' \
  src/prog/{display-buttons,display-coords,get-versions}.c

  ./autogen.sh
  ./configure --prefix=/usr \
  --sbindir=/usr/bin  \
  --sysconfdir=/etc   \
  ac_cv_path_emacs=no \
  --mandir=/usr/share/man \
  --infodir=/usr/share/info

  make

  make ROOT=${PKGDIR} install

  ln -sv libgpm.so.2.1.0 ${PKGDIR}/usr/lib/libgpm.so.1
  ln -sv libgpm.so.2.1.0 ${PKGDIR}/usr/lib/libgpm.so

  install -v -m644 conf/gpm-root.conf ${PKGDIR}/etc

  cd ../pagan-scripts-20260822
  make DESTDIR=${PKGDIR} install-sysd-gpm
package: |
  true