summaryrefslogtreecommitdiff
path: root/extra/check
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-19 10:10:33 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-19 10:10:33 -0300
commit9e30cea6b8a2e90fd8958ca1f773e3a382179763 (patch)
tree7ce1eda16c69a04998d595f3bfcccf9a65489327 /extra/check
parent503317d2f4cb14793d90cca90822975c41e8c0a1 (diff)
parent858daf289b238f4aa3190656635fc354ddd2bce9 (diff)
Merge branch 'master' of gparabola:abslibre-mips64el
Conflicts: social/sobby/PKGBUILD ~fauno/kyotocabinet/PKGBUILD ~fauno/kyototycoon/PKGBUILD
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..6014fbee3
--- /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' 'mips64el')
+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
+}