summaryrefslogtreecommitdiff
path: root/extra/check
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-18 02:17:27 -0800
committerroot <root@rshg054.dnsready.net>2012-11-18 02:17:27 -0800
commitab63d8d49f68847a68c2ba0014bf0d3338cb3df6 (patch)
tree7f0d9cf1b60a9b65a36c3f58ab2164c62cb378f1 /extra/check
parent071ecd58a9b69020ec170e7f89009a603e885371 (diff)
Sun Nov 18 02:15:18 PST 2012
Diffstat (limited to 'extra/check')
-rw-r--r--extra/check/PKGBUILD31
-rw-r--r--extra/check/check.install20
2 files changed, 51 insertions, 0 deletions
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) <jan.steffens@gmail.com>
+# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Jeremy Cowgar <jeremy@cowgar.com>
+
+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
+}