summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-07-27 19:24:43 -0400
committerAndrew Sun2018-07-27 19:24:43 -0400
commitbffeb0cc610f09dffb71b94f8176a32d682b5455 (patch)
treef1c19c605c503e9a7220b364e5db05e18736371e
parentd1defb7ff49ecca53a4ca72095f6edcc99a7cf7c (diff)
downloadaur-bffeb0cc610f09dffb71b94f8176a32d682b5455.tar.gz
lib32-check: update to 0.12.0
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD37
2 files changed, 31 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cdfee6bfdae..a41dde3f5e1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index bb00ad1e63d..82a8a4ec35e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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}
}