desktop/check/PKGBUILD

37 lines
826 B
Bash
Raw Normal View History

2013-12-04 19:11:08 +08:00
pkgname=check
2017-02-03 06:21:14 +08:00
pkgver=0.11.0
2013-12-04 19:11:08 +08:00
pkgrel=1
pkgdesc="A unit testing framework for C"
arch=('x86_64')
2017-02-03 06:21:14 +08:00
url="https://libcheck.github.io/check/"
2013-12-04 19:11:08 +08:00
license=('LGPL')
options=('!libtool')
categories=('programming')
install=$pkgname.install
2017-02-03 06:21:14 +08:00
source=(https://github.com/libcheck/check/archive/$pkgver.tar.gz)
sha512sums=('829adee2a5793dda6ac88162e355268019dd82e7a8ad95f1287bd262c3a7764425fba6a8347f1aeebdad642a972043b70aa59d54c87b3c46e1b5b569290dc359')
2013-12-04 19:11:08 +08:00
2017-02-03 06:21:14 +08:00
prepare() {
cd $pkgname-$pkgver
autoreconf -fvi
}
2013-12-04 19:11:08 +08:00
2017-02-03 06:21:14 +08:00
build() {
cd $pkgname-$pkgver
2014-09-22 05:57:24 +08:00
./configure --prefix=/usr --disable-static
2017-02-03 06:21:14 +08:00
make
2013-12-04 19:11:08 +08:00
}
package() {
cd ${srcdir}/$pkgname-$pkgver
make DESTDIR=${pkgdir} install
2017-02-03 06:21:14 +08:00
#get rid of the package's info directory
2013-12-04 19:11:08 +08:00
rm ${pkgdir}/usr/share/info/dir || return 1
2017-02-03 06:21:14 +08:00
# svn log file is too big
rm "$pkgdir"/usr/share/doc/check/*ChangeLog*
2013-12-04 19:11:08 +08:00
}