68 lines
1.7 KiB
Bash
68 lines
1.7 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=gpm
|
|
pkgver=1.20.7.r38.ge82d1a6
|
|
_commit='e82d1a653ca94aa4ed12441424da6ce780b1e530'
|
|
pkgrel=06
|
|
pkgdesc='A mouse server for the console and xterm w/o systemd'
|
|
url='https://www.nico.schottelius.org/software/gpm/'
|
|
depends=('bash' 'procps-ng')
|
|
makedepends=('git')
|
|
provides=('libgpm.so')
|
|
options=('!makeflags')
|
|
source=("git+https://github.com/telmich/gpm.git#commit=${_commit}"
|
|
'gpm.sh')
|
|
|
|
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 -m0644 ../gpm.sh "${pkgdir}/etc/profile.d/gpm.sh"
|
|
|
|
# library fixes
|
|
cd "${pkgdir}/usr/lib/"
|
|
ln -s libgpm.so.2.* libgpm.so
|
|
chmod 0755 "${pkgdir}"/usr/lib/libgpm.so.*
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL')
|
|
|
|
sha256sums=(7db4089030c128d9ee5fb1afb08251d328f8f8835e4716ff41c6c08c1a90bed2 # gpm
|
|
f41e90dcf6c0c6c4b8eff1c69039a20eb6b38ea851ffd1fa47ba311bf83d6ed8) # gpm.sh
|
|
|
|
## 460aada32b98bf4d2ec885c9ad49cc96b4e076166265045842fdaf624328c510 gpm-1.20.7.r38.ge82d1a6-06-x86_64.pkg.tar.lz
|