dateutils: fix crossbuild

This commit is contained in:
Enno Boland 2015-03-12 15:33:45 +01:00
parent 324bbb55bd
commit 97187ee382
1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'dateutils'
pkgname=dateutils
version=0.3.2
revision=1
revision=2
build_style=gnu-configure
configure_args="ax_cv_zoneinfo_tzdir=/usr/share/zoneinfo"
short_desc="Nifty command line date and time utilities"
@ -10,3 +10,12 @@ license="BSD"
homepage="http://www.fresse.org/dateutils/"
distfiles="https://bitbucket.org/hroptatyr/dateutils/downloads/${pkgname}-${version}.tar.xz"
checksum=551620b01c08d5feffb68fde6bb669fe09275dd316a79aeca0efcbe3ec774a3e
pre_configure() {
sed -i "/^## check\/generate version files/,/^## check for byteorder utils/d" configure
cat > version.mk <<EOF
VERSION = $version
PACKAGE_VERSION = \$(VERSION)
PACKAGE_STRING = \$(PACKAGE) \$(VERSION)
EOF
}