From 0274224901dbd6c5b33b9102886378c3ce4c675d Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sun, 21 Sep 2014 21:57:24 +0000 Subject: [PATCH] update check and fix check.install --- check/PKGBUILD | 6 +- check/check.install | 220 ++++---------------------------------------- 2 files changed, 20 insertions(+), 206 deletions(-) diff --git a/check/PKGBUILD b/check/PKGBUILD index 725278ec2..3d28b5007 100644 --- a/check/PKGBUILD +++ b/check/PKGBUILD @@ -1,7 +1,7 @@ # maintainer (x86_64): Giuseppe calĂ  pkgname=check -pkgver=0.9.13 +pkgver=0.9.14 pkgrel=1 pkgdesc="A unit testing framework for C" arch=('x86_64') @@ -11,12 +11,12 @@ options=('!libtool') categories=('programming') install=$pkgname.install source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('95530868f81a9496b2518fd2b713008a') +md5sums=('38263d115d784c17aa3b959ce94be8b8') build() { cd ${srcdir}/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure --prefix=/usr --disable-static make || return 1 } diff --git a/check/check.install b/check/check.install index e2fb5b77e..c4092e298 100644 --- a/check/check.install +++ b/check/check.install @@ -1,206 +1,20 @@ - - - - - check/check.install in chakra-packages/apps:master - Gitorious - - - - - - - - - - - -
-
- -
-
-
-

- chakra-packages / - apps -

+_infodir=/usr/share/info +_filelist=(check.info) -
-
-
-
- SSH - HTTPS - Git - - -
+post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${_filelist[@]}; do + install-info $_infodir/$file $_infodir/dir 2> /dev/null + done +} -
-
- - Download - +post_upgrade() { + post_install $1 +} -
-
-
- -
-
-
-

- To clone this repository: -

-
git clone git@gitorious.org:chakra-packages/apps.git
-

- To push to this repository: -

-
# Add a new remote
-git remote add origin git@gitorious.org:chakra-packages/apps.git
-
-# Push the master branch to the newly added origin, and configure
-# this remote and branch as the default:
-git push -u origin master
-
-# From now on you can push master to the "origin" remote with:
-git push
-
- -
-
-
-

Apps repository for Chakra

-
-
-
- - -
-
- -
-
-
- - - -
  1. infodir=/usr/share/info
  2. filelist=(check.info)
  3. post_install() {
  4. [ -x usr/bin/install-info ] || return 0
  5. for file in ${filelist[@]}; do
  6. install-info $infodir/$file $infodir/dir 2> /dev/null
  7. done
  8. }
  9. post_upgrade() {
  10. post_install $1
  11. }
  12. pre_remove() {
  13. [ -x usr/bin/install-info ] || return 0
  14. for file in ${filelist[@]}; do
  15. install-info --delete $infodir/$file $infodir/dir 2> /dev/null
  16. done
  17. }
-
-
- -
-
- - - - - - - - - - - - - +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 +}