From 3f2a2fad56d59f99f6e3cc22d9d151dedb3df682 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 21 Jul 2011 00:53:11 -0500 Subject: dejagnu: Initial inclusion --- abs/core/dejagnu/PKGBUILD | 31 +++++++++++++++++++++++++++++++ abs/core/dejagnu/dejagnu.install | 15 +++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 abs/core/dejagnu/PKGBUILD create mode 100644 abs/core/dejagnu/dejagnu.install diff --git a/abs/core/dejagnu/PKGBUILD b/abs/core/dejagnu/PKGBUILD new file mode 100644 index 0000000..bc6136b --- /dev/null +++ b/abs/core/dejagnu/PKGBUILD @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Allan McRae + +pkgname=dejagnu +pkgver=1.5 +pkgrel=1 +pkgdesc="Framework for testing other programs" +arch=('any') +url="http://www.gnu.org/software/dejagnu/" +license=('GPL') +depends=('sh' 'expect') +makedepends=('dejagnu') +options=('!libtool') +install=dejagnu.install +source=(http://ftp.gnu.org/gnu/dejagnu/${pkgname}-${pkgver}.tar.gz) +md5sums=('3df1cbca885e751e22d3ebd1ac64dc3c') + + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make + make check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make -j1 DESTDIR="$pkgdir/" install +} diff --git a/abs/core/dejagnu/dejagnu.install b/abs/core/dejagnu/dejagnu.install new file mode 100644 index 0000000..0e3c430 --- /dev/null +++ b/abs/core/dejagnu/dejagnu.install @@ -0,0 +1,15 @@ +infodir=usr/share/info + +post_install() { + [ -x usr/bin/install-info ] || return 0 + install-info $infodir/dejagnu.info.gz $infodir/dir 2> /dev/null +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + install-info --delete $infodir/dejagnu.info.gz $infodir/dir 2> /dev/null +} -- cgit v0.12