Commit e7cc1603 authored by Eric Bélanger's avatar Eric Bélanger
Browse files

Upstream update, Added info file support

parent b325cb47
2009-02-09 Eric Belanger <eric@archlinux.org>
* gpm 1.20.6-1
* Upstream update
* Added info file support
2008-06-16 Eric Belanger <eric@archlinux.org>
* gpm 1.20.5-1
......
......@@ -2,33 +2,34 @@
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gpm
pkgver=1.20.5
pkgrel=2
pkgver=1.20.6
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')
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=('e55473932e4052f3b74c730dfefe0d15' 'c4d42a4725503a5524cae060a959a3d3'\
md5sums=('6b534da16dc1b28ba828dea89e520f6f' 'c4d42a4725503a5524cae060a959a3d3'\
'5f109341a7d1bb18c59d7c3a395d848a')
sha1sums=('4a8c2109167da8e60055c25dadc383d02ba32538'
'c13ad1422d24af320e2abb9786c7eacef39b293c'
sha1sums=('f3bb9272878b7934968381c8b25edab359114150' 'c13ad1422d24af320e2abb9786c7eacef39b293c'\
'3bcb67027f0ad7dc393388fb02c261126671f9f5')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
cd ${srcdir}/${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
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
gzip ${pkgdir}/usr/share/info/gpm.info
# library fixes
cd ${startdir}/pkg/usr/lib/
cd ${pkgdir}/usr/lib/
ln -s libgpm.so.2.* libgpm.so || return 1
chmod 755 ${startdir}/pkg/usr/lib/libgpm.so.* || return 1
chmod 755 ${pkgdir}/usr/lib/libgpm.so.* || return 1
}
infodir=/usr/share/info
filelist=(gpm.info.gz)
post_install() {
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment