Date: Wednesday, March 18, 2015 @ 16:32:24 Author: spupykin Revision: 129501
upgpkg: ht 2.1.0-2 upd Added: ht/trunk/ht.install Modified: ht/trunk/PKGBUILD ------------+ PKGBUILD | 8 +++++++- ht.install | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-03-18 15:32:21 UTC (rev 129500) +++ PKGBUILD 2015-03-18 15:32:24 UTC (rev 129501) @@ -5,12 +5,14 @@ pkgname=ht pkgver=2.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="A file editor/viewer/analyzer for executables" arch=('i686' 'x86_64') url="http://hte.sourceforge.net/" license=('GPL') depends=('gcc-libs' 'ncurses' 'lzo') +makedepends=('texinfo') +install=ht.install source=(http://downloads.sourceforge.net/sourceforge/hte/$pkgname-$pkgver.tar.bz2) md5sums=('09b2a4461d75e9cd03af1cd67fadc1ec') @@ -25,4 +27,8 @@ make DESTDIR=$pkgdir install # avoid TeX conflict mv $pkgdir/usr/bin/ht $pkgdir/usr/bin/hte + # doc + install -dm0755 $pkgdir/usr/share/{info,doc/ht} + install -m0644 doc/*.info $pkgdir/usr/share/info/ + install -m0644 doc/{README,*.html} $pkgdir/usr/share/doc/ht/ } Added: ht.install =================================================================== --- ht.install (rev 0) +++ ht.install 2015-03-18 15:32:24 UTC (rev 129501) @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(ht.info hthelp.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 +}