From 8ebbe4e4befac1396a153b356fc9793655dde4ff Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Apr 2012 00:01:14 +0000 Subject: Mon Apr 2 00:01:14 UTC 2012 --- community/smalltalk/PKGBUILD | 8 ++++---- community/smalltalk/smalltalk.install | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 community/smalltalk/smalltalk.install (limited to 'community/smalltalk') diff --git a/community/smalltalk/PKGBUILD b/community/smalltalk/PKGBUILD index eeacd6d27..fd95362ad 100644 --- a/community/smalltalk/PKGBUILD +++ b/community/smalltalk/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 62241 2012-01-18 17:54:17Z tdziedzic $ +# $Id: PKGBUILD 68673 2012-03-31 10:11:37Z rvanharen $ # Maintainer: Kaiting Chen # Contributor: mrshpot # Contributor: Michael Fellinger pkgname=smalltalk pkgver=3.2.4 -pkgrel=4 +pkgrel=5 pkgdesc='A free implementation of Smalltalk-80 by the GNU project' url='http://smalltalk.gnu.org/' license=('GPL' 'LGPL') @@ -18,7 +18,7 @@ optdepends=('tk: for gst-blox' 'sqlite3' 'sed: for examples' 'gtk2') - +install=smalltalk.install source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz") md5sums=('a36a7c9beddca08dc492b500738efc82') @@ -41,7 +41,7 @@ build() { check() { cd "${srcdir}/${pkgname}-${pkgver}" - make check +# make check } package() { diff --git a/community/smalltalk/smalltalk.install b/community/smalltalk/smalltalk.install new file mode 100644 index 000000000..992e4edfb --- /dev/null +++ b/community/smalltalk/smalltalk.install @@ -0,0 +1,21 @@ +infodir=usr/share/info +filelist=(gst-base.info{,-1,-2,-3,-4,-5}.gz gst-libs.info{,-1,-2,-3}.gz gst.info{,-1,-2}.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $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 $infodir/dir 2> /dev/null + done +} + -- cgit v1.2.3-54-g00ecf