summaryrefslogtreecommitdiff
path: root/community/datemath/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/datemath/PKGBUILD')
-rw-r--r--community/datemath/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/community/datemath/PKGBUILD b/community/datemath/PKGBUILD
index 1f8a1e0d1..157812a04 100644
--- a/community/datemath/PKGBUILD
+++ b/community/datemath/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=datemath
pkgver=2.0.10
-pkgrel=2
+pkgrel=2.1
pkgdesc="Command line date and time math utility."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.unixwiz.net/tools/datemath.html"
@@ -16,6 +16,7 @@ md5sums=('2c369d70a43313b71dbe3c7cc50207de')
build() {
cd $srcdir
- make || return 1
+ sed -ri 's/CFLAGS\s*=\s*.*/CFLAGS='"$CFLAGS $LDFLAGS"'/' Makefile
+ make
install -D -m755 $srcdir/datemath $pkgdir/usr/bin/datemath
}