PKGBUILDs/core/gpm/PKGBUILD
2009-10-10 08:51:52 -05:00

34 lines
1 KiB
Bash

# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gpm
pkgver=1.20.6
pkgrel=3
pkgdesc="A mouse server for the console and xterm"
arch=('arm')
url="http://unix.schottelius.org/gpm/"
license=('GPL')
depends=('ncurses' 'texinfo')
backup=('etc/conf.d/gpm')
options=('!makeflags')
install=gpm.install
source=(http://unix.schottelius.org/gpm/archives/${pkgname}-${pkgver}.tar.bz2
gpm
gpm.conf.d)
md5sums=('6b534da16dc1b28ba828dea89e520f6f'
'945ecde0836687e05c13ea837092ea6c'
'63e599950946e5f5a649432510aacf4c')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -D -m755 ../gpm "${pkgdir}/etc/rc.d/gpm" || return 1
install -D -m644 ../gpm.conf.d "${pkgdir}/etc/conf.d/gpm" || return 1
# Library fixes
cd "${pkgdir}/usr/lib/"
ln -s libgpm.so.2.* libgpm.so || return 1
chmod 755 "${pkgdir}"/usr/lib/libgpm.so.* || return 1
}