[arch-commits] Commit in groff/trunk (PKGBUILD groff.install)
Tobias Powalowski
tpowa at archlinux.org
Wed Jan 14 09:05:30 UTC 2009
Date: Wednesday, January 14, 2009 @ 04:05:30
Author: tpowa
Revision: 24146
upgpkg: groff 1.20.1-1
Added:
groff/trunk/groff.install
Modified:
groff/trunk/PKGBUILD
---------------+
PKGBUILD | 26 +++++++++++++++-----------
groff.install | 20 ++++++++++++++++++++
2 files changed, 35 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-01-14 09:03:31 UTC (rev 24145)
+++ PKGBUILD 2009-01-14 09:05:30 UTC (rev 24146)
@@ -1,8 +1,8 @@
# $Id$
# Maintainer: judd <jvinet at zeroflux.org>
pkgname=groff
-pkgver=1.19.2
-pkgrel=4
+pkgver=1.20.1
+pkgrel=1
pkgdesc="GNU troff text-formatting system"
arch=(i686 x86_64)
url="http://www.gnu.org/software/groff/groff.html"
@@ -11,24 +11,28 @@
depends=('perl' 'gcc-libs')
source=(ftp://ftp.gnu.org/gnu/groff/groff-$pkgver.tar.gz
man-utf8.tmac)
-md5sums=('f7c9cf2e4b9967d3af167d7c9fadaae4'
- 'faefbef2b05ee5438b632464607c6cc4')
+install=groff.install
+md5sums=('48fa768dd6fdeb7968041dd5ae8e2b02'
+ 'e010072e4a2f11728bcb5ca631858cd1')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --without-x
- mkdir -p $startdir/pkg/usr
+ mkdir -p $pkgdir/usr
make -j1 || return 1
- make prefix=$startdir/pkg/usr install
- cd $startdir/pkg/usr/bin
+ make prefix=$pkgdir/usr install
+ cd $pkgdir/usr/bin
# needed for xman
ln -s eqn geqn
ln -s tbl gtbl
ln -s soelim zsoelim
- rm -rf $startdir/pkg/usr/lib
+ rm -rf $pkgdir/usr/lib
# Fix some issues when encoding to utf8 man pages
# The output chars don't match keyboard chars...
- cat $startdir/src/man-utf8.tmac >> \
- $startdir/pkg/usr/share/groff/site-tmac/man.local
+ cat $srcdir/man-utf8.tmac >> \
+ $pkgdir/usr/share/groff/site-tmac/man.local
+
+ rm -f $pkgdir/usr/share/info/dir
}
+
Added: groff.install
===================================================================
--- groff.install (rev 0)
+++ groff.install 2009-01-14 09:05:30 UTC (rev 24146)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(groff.info groff.info-1 groff.info-2 groff.info-3)
+
+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
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list