[arch-commits] Commit in texi2html/trunk (PKGBUILD texi2html.install)
Eric Bélanger
eric at archlinux.org
Tue Apr 12 02:27:52 UTC 2011
Date: Monday, April 11, 2011 @ 22:27:52
Author: eric
Revision: 119542
upgpkg: texi2html 5.0-1
Upstream update, Switched to 'any' arch, Added texinfo file
Added:
texi2html/trunk/texi2html.install
Modified:
texi2html/trunk/PKGBUILD
-------------------+
PKGBUILD | 23 ++++++++++++-----------
texi2html.install | 20 ++++++++++++++++++++
2 files changed, 32 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-04-11 22:27:23 UTC (rev 119541)
+++ PKGBUILD 2011-04-12 02:27:52 UTC (rev 119542)
@@ -1,25 +1,26 @@
# $Id$
# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
-# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
pkgname=texi2html
-pkgver=1.82
+pkgver=5.0
pkgrel=1
pkgdesc="Converts texinfo documents to HTML"
-arch=('i686' 'x86_64')
+arch=('any')
url="http://www.nongnu.org/texi2html/"
license=('GPL')
depends=('perl')
-source=(http://www.very-clever.com/download/nongnu/texi2html/$pkgname-$pkgver.tar.gz)
+install=texi2html.install
+source=(http://download.savannah.gnu.org/releases/texi2html/$pkgname-$pkgver.tar.bz2)
+md5sums=('f15ac876fcdc8be865b16535f480aa54')
build() {
- cd $startdir/src/$pkgname-$pkgver
+ cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
- sed -i "s|mandir = /usr/man|mandir = \${prefix}/share/man|g" Makefile
- make || return 1
- make prefix=$startdir/pkg/usr install
- rm -r $startdir/pkg/usr/share/texinfo
- rm -r $startdir/pkg/usr/share/info
+ make
}
-md5sums=('7ea537a8c81ffbf5421b39c0333e91df')
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
Added: texi2html.install
===================================================================
--- texi2html.install (rev 0)
+++ texi2html.install 2011-04-12 02:27:52 UTC (rev 119542)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(texi2html.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
More information about the arch-commits
mailing list