diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 31 insertions, 19 deletions
@@ -1,16 +1,17 @@ -# Generated by mksrcinfo v8 -# Sat Jun 11 17:11:16 UTC 2016 pkgbase = lib32-check pkgdesc = A unit testing framework for C (32-bit) - pkgver = 0.10.0 + pkgver = 0.12.0 pkgrel = 1 - url = http://check.sourceforge.net/ + url = https://libcheck.github.io/check/ arch = x86_64 license = LGPL + makedepends = git + makedepends = lib32-gcc-libs + depends = lib32-glibc depends = awk depends = check - source = http://downloads.sourceforge.net/sourceforge/check/check-0.10.0.tar.gz - md5sums = 53c5e5c77d090e103a17f3ed7fd7d8b8 + source = git+https://github.com/libcheck/check#commit=673dce1d61781c32b449bef0ee8711dc7e689170 + md5sums = SKIP pkgname = lib32-check @@ -1,40 +1,51 @@ -# Maintainer: orumin <dev@orum.in> +# Maintainer: Andrew Sun <adsun701@gmail.com> +# Contributor: orumin <dev@orum.in> _basename=check pkgname="lib32-$_basename" -pkgver=0.10.0 +pkgver=0.12.0 pkgrel=1 pkgdesc="A unit testing framework for C (32-bit)" arch=('x86_64') -url="http://check.sourceforge.net/" +url="https://libcheck.github.io/check/" license=('LGPL') -depends=('awk' "$_basename") -source=(http://downloads.sourceforge.net/sourceforge/$_basename/$_basename-$pkgver.tar.gz) -md5sums=('53c5e5c77d090e103a17f3ed7fd7d8b8') +depends=('lib32-glibc' 'awk' "$_basename") +makedepends=('git' 'lib32-gcc-libs') +_commit=673dce1d61781c32b449bef0ee8711dc7e689170 # tags/0.12.0 +source=("git+https://github.com/libcheck/check#commit=$_commit") +md5sums=('SKIP') + +pkgver() { + cd $_basename + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd $_basename + autoreconf -fvi +} build() { - cd $_basename-$pkgver + cd $_basename export CC='gcc -m32' export CXX='g++ -m32' export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' ./configure --prefix=/usr --disable-static \ - --build=i686-pc-linux-gnu --libdir=/usr/lib32 + --libdir=/usr/lib32 make } check() { - cd $_basename-$pkgver + cd $_basename # Extremely long #make -k check } package() { - cd $_basename-$pkgver + cd $_basename make DESTDIR="$pkgdir" install - - cd "$pkgdir"/usr - rm -r bin include share + rm -rf ${pkgdir}/usr/{bin,share,include} } |