summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/gpm/PKGBUILD
blob: 7a7c57184ea2c7fa4b4810f4d0aed9e26191e71d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 3002 2008-06-18 01:56:59Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=gpm
pkgver=1.20.5
pkgrel=1
pkgdesc="A mouse server for the console and xterm"
arch=('i686' 'x86_64')
url="http://unix.schottelius.org/gpm/"
license=('GPL')
depends=('ncurses')
backup=('etc/conf.d/gpm')
options=('!makeflags')
source=(http://unix.schottelius.org/gpm/archives/${pkgname}-${pkgver}.tar.bz2 \
        gpm gpm.conf.d)
md5sums=('e55473932e4052f3b74c730dfefe0d15' 'c4d42a4725503a5524cae060a959a3d3'\
         '5f109341a7d1bb18c59d7c3a395d848a')
sha1sums=('4a8c2109167da8e60055c25dadc383d02ba32538'
          'c13ad1422d24af320e2abb9786c7eacef39b293c'
          '3bcb67027f0ad7dc393388fb02c261126671f9f5')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1
  install -D -m755 ../gpm ${startdir}/pkg/etc/rc.d/gpm || return 1
  install -D -m644 ../gpm.conf.d ${startdir}/pkg/etc/conf.d/gpm || return 1

# library fixes
  cd ${startdir}/pkg/usr/lib/
  ln -s libgpm.so.2.* libgpm.so || return 1
  chmod 755 ${startdir}/pkg/usr/lib/libgpm.so.* || return 1
}