summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2018-11-23 11:38:07 +0000
committerDaniel Bermond2018-11-23 11:38:07 +0000
commit43be07f677f11551a7b12214fe4855dd8acb8cb7 (patch)
tree8e6dd7e83314c4cbbe0f880cb5623200748922a7
parent4c65b26600331b27f24b33840da7296a2587de60 (diff)
downloadaur-43be07f677f11551a7b12214fe4855dd8acb8cb7.tar.gz
Enable tests. Do not rename the source clone.
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD58
2 files changed, 32 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eef36d9c908..e8ce5ea65a4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,17 @@
pkgbase = fxdiv-git
pkgdesc = Header-only library for division via fixed-point multiplication by inverse (git version)
- pkgver = r51.811b482
- pkgrel = 2
+ pkgver = r53.f8c5354
+ pkgrel = 1
url = https://github.com/Maratyszcza/FXdiv/
arch = any
license = MIT
+ checkdepends = python2
+ checkdepends = ninja
+ checkdepends = confu2-git
makedepends = git
provides = fxdiv
conflicts = fxdiv
- source = fxdiv-git::git+https://github.com/Maratyszcza/FXdiv.git
+ source = git+https://github.com/Maratyszcza/FXdiv.git
sha256sums = SKIP
pkgname = fxdiv-git
diff --git a/PKGBUILD b/PKGBUILD
index 7456303d21d..376beb1a39c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,55 +1,49 @@
# Maintainer : Daniel Bermond < gmail-com: danielbermond >
-# NOTE:
-# This is a header-only library. No dependecy is needed and no build is necessary.
-# If you want to build the checks/tests, uncomment the blocks in checkdepends, build() and check().
-
pkgname=fxdiv-git
-pkgver=r51.811b482
-pkgrel=2
+_srcname=FXdiv
+pkgver=r53.f8c5354
+pkgrel=1
pkgdesc='Header-only library for division via fixed-point multiplication by inverse (git version)'
arch=('any')
url='https://github.com/Maratyszcza/FXdiv/'
license=('MIT')
makedepends=('git')
-#checkdepends=(
-# official repositories:
-# 'python2' 'ninja'
-# AUR:
-# 'confu2-git'
-#)
+checkdepends=(
+ # official repositories:
+ 'python2' 'ninja'
+ # AUR:
+ 'confu2-git'
+)
provides=('fxdiv')
conflicts=('fxdiv')
-source=("$pkgname"::'git+https://github.com/Maratyszcza/FXdiv.git')
+source=('git+https://github.com/Maratyszcza/FXdiv.git')
sha256sums=('SKIP')
pkgver() {
- cd "$pkgname"
+ cd "$_srcname"
# git, no tags available
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-# uncomment this block to build and run the checks/tests
-#build() {
-# cd "$pkgname"
-# confu2 setup
-# python2 ./configure.py
-# ninja
-#}
-#
-#check() {
-# cd "${pkgname}/bin"
-# local _test
-# for _test in *
-# do
-# printf '%s\n' " -> Running test '${_test}'..."
-# ./"$_test"
-# done
-#}
+check() {
+ cd "$_srcname"
+ confu2 setup
+ python2 ./configure.py
+ ninja
+
+ cd bin
+ local _test
+ for _test in *
+ do
+ printf '%s\n' " -> Running test '${_test}'..."
+ ./"$_test"
+ done
+}
package() {
- cd "${pkgname}"
+ cd "$_srcname"
# headers
mkdir -p "${pkgdir}/usr/include"