From 2d2ba080b51dd73a96b6094257cef4216e8bf090 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 23 Mar 2018 22:12:30 +0000
Subject: cmocka: update to 1.1.1

---
 abs/extra/cmocka/PKGBUILD | 45 ++++++++++++++++++++++++++++-----------------
 1 file changed, 28 insertions(+), 17 deletions(-)

diff --git a/abs/extra/cmocka/PKGBUILD b/abs/extra/cmocka/PKGBUILD
index fc28878..381d2ba 100644
--- a/abs/extra/cmocka/PKGBUILD
+++ b/abs/extra/cmocka/PKGBUILD
@@ -1,31 +1,42 @@
-# $Id$
-# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
 
 pkgname=cmocka
-url='http://cmocka.org/'
-pkgver=0.4.1
+pkgver=1.1.1
 pkgrel=1
-pkgdesc='an elegant unit testing framework for C with support for mock objects'
-arch=(i686 x86_64)
-license=(GPL)
-depends=(glibc)
-makedepends=(cmake)
-source=(http://git.cryptomilk.org/projects/cmocka.git/snapshot/cmocka-$pkgver.tar.bz2)
-sha1sums=('215378198f489033d982122e34168d9d225e2f5b')
+pkgdesc='Elegant unit testing framework for C with support for mock objects'
+url='https://cmocka.org/'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc')
+makedepends=('cmake')
+source=(https://cmocka.org/files/1.1/cmocka-${pkgver}.tar.{xz,asc})
+sha512sums=('801c4a3e1bb9047241b1cb5a90c1cbdee1b0aff5e3d0a84ec8b2dbaee79274618c24fbe5e9fedbf0b3ee18c6c98b55d93e135d037ac33ab872edc7665af41577'
+            'SKIP')
+validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  mkdir build
+}
 
 build() {
-  rm -rf build; mkdir build
-  cd build
-  cmake ../$pkgname-$pkgver -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUNIT_TESTING=ON
+  cd ${pkgname}-${pkgver}/build
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DUNIT_TESTING=ON
   make
 }
 
 check() {
-  cd build
+  cd ${pkgname}-${pkgver}/build
   make test
 }
 
 package() {
-  cd build
-  make install DESTDIR="$pkgdir"
+  cd ${pkgname}-${pkgver}/build
+  make install DESTDIR="${pkgdir}"
 }
+
+# vim: ts=2 sw=2 et:
-- 
cgit v0.12

