desktop/check/PKGBUILD

37 lines
746 B
Bash
Raw Normal View History

2013-12-04 19:11:08 +08:00
pkgname=check
2018-10-25 10:44:21 +08:00
pkgver=0.12.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')
2018-10-25 10:44:21 +08:00
depends=('awk')
2013-12-04 19:11:08 +08:00
categories=('programming')
install=$pkgname.install
2017-02-03 06:21:14 +08:00
source=(https://github.com/libcheck/check/archive/$pkgver.tar.gz)
2018-10-25 10:44:21 +08:00
sha256sums=('7816b4c38f6e23ff873786f18d966e552837677bfae144041e0587e7c39e04e8')
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
2018-10-25 10:44:21 +08:00
# get rid of the package's info directory
rm ${pkgdir}/usr/share/info/dir
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
}