From ab63d8d49f68847a68c2ba0014bf0d3338cb3df6 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 18 Nov 2012 02:17:27 -0800 Subject: Sun Nov 18 02:15:18 PST 2012 --- extra/check/PKGBUILD | 31 +++++++++++++++++++++++++++++++ extra/check/check.install | 20 ++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 extra/check/PKGBUILD create mode 100644 extra/check/check.install (limited to 'extra/check') diff --git a/extra/check/PKGBUILD b/extra/check/PKGBUILD new file mode 100644 index 000000000..6ab2354ba --- /dev/null +++ b/extra/check/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 171322 2012-11-17 08:55:42Z heftig $ +# Maintainer: Jan Alexander Steffens (heftig) +# Contributor: Jaroslav Lichtblau +# Contributor: Jeremy Cowgar + +pkgname=check +pkgver=0.9.9 +pkgrel=1 +pkgdesc="A unit testing framework for C" +arch=('i686' 'x86_64') +url="http://check.sourceforge.net/" +license=('LGPL') +options=('!libtool') +install=$pkgname.install +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('f3702f2fcfc19ce3f62dca66c241a168') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + + # get rid of the package's info directory, + # install-info adds entries for us at install-time + rm "$pkgdir/usr/share/info/dir" +} diff --git a/extra/check/check.install b/extra/check/check.install new file mode 100644 index 000000000..c4092e298 --- /dev/null +++ b/extra/check/check.install @@ -0,0 +1,20 @@ +_infodir=/usr/share/info +_filelist=(check.info) + +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