summaryrefslogtreecommitdiff
path: root/community/datemath/PKGBUILD
blob: 157812a04a06ea93e94879a8f01b9ed1741bcfa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $Id: PKGBUILD 18094 2010-05-31 09:25:01Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Todd Musall <tmusall@comcast.net>
# Contributor: Todd Musall <tmusall@comcast.net>

pkgname=datemath
pkgver=2.0.10
pkgrel=2.1
pkgdesc="Command line date and time math utility."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.unixwiz.net/tools/datemath.html"
license=("GPL")
depends=('glibc')
source=(http://www.unixwiz.net/tools/$pkgname.tar.gz)
md5sums=('2c369d70a43313b71dbe3c7cc50207de')

build() {
  cd $srcdir
  sed -ri 's/CFLAGS\s*=\s*.*/CFLAGS='"$CFLAGS $LDFLAGS"'/' Makefile
  make
  install -D -m755 $srcdir/datemath $pkgdir/usr/bin/datemath
}