[arch-commits] Commit in check/trunk (PKGBUILD check.install)
Jan Steffens
heftig at archlinux.org
Tue Jun 7 11:51:48 UTC 2016
Date: Tuesday, June 7, 2016 @ 13:51:47
Author: heftig
Revision: 269095
0.10.0-2: info hook
Modified:
check/trunk/PKGBUILD
Deleted:
check/trunk/check.install
---------------+
PKGBUILD | 31 ++++++++++++++++++-------------
check.install | 20 --------------------
2 files changed, 18 insertions(+), 33 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-06-07 10:40:15 UTC (rev 269094)
+++ PKGBUILD 2016-06-07 11:51:47 UTC (rev 269095)
@@ -5,34 +5,39 @@
pkgname=check
pkgver=0.10.0
-pkgrel=1
+pkgrel=2
pkgdesc="A unit testing framework for C"
-arch=('i686' 'x86_64')
-url="http://check.sourceforge.net/"
-license=('LGPL')
-install=$pkgname.install
-depends=('awk')
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('53c5e5c77d090e103a17f3ed7fd7d8b8')
+url="https://libcheck.github.io/check/"
+arch=(i686 x86_64)
+license=(LGPL)
+depends=(awk)
+makedepends=(git)
+source=("git+https://github.com/libcheck/check#tag=$pkgver")
+md5sums=('SKIP')
+prepare() {
+ cd $pkgname
+ autoreconf -fvi
+}
+
+
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
./configure --prefix=/usr --disable-static
make
}
check() {
- cd $pkgname-$pkgver
+ cd $pkgname
# Extremely long
#make -k check
}
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="$pkgdir" install
- # get rid of the package's info directory,
- # install-info adds entries for us at install-time
+ # get rid of the package's info directory
rm "$pkgdir/usr/share/info/dir"
# svn log file is too big
Deleted: check.install
===================================================================
--- check.install 2016-06-07 10:40:15 UTC (rev 269094)
+++ check.install 2016-06-07 11:51:47 UTC (rev 269095)
@@ -1,20 +0,0 @@
-_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
-}
More information about the arch-commits
mailing list