outils: unbreak musl

This commit is contained in:
Jürgen Buchmüller 2015-11-12 18:12:18 +01:00
parent 87eafb9366
commit 84613a66f1

View file

@ -1,7 +1,7 @@
# Template file for 'outils'
pkgname=outils
version=0.3
revision=1
revision=2
build_style=gnu-makefile
make_install_args="install install-calendars"
makedepends="libressl-devel"
@ -14,6 +14,12 @@ homepage="https://github.com/chneukirchen/outils"
distfiles="https://github.com/chneukirchen/${pkgname}/archive/v${version}.tar.gz"
checksum=de4c947f8b71513c01a07e7f8e0958a891d3484cea0485d29ec531fa75042d64
pre_build() {
# Use <stdint.h> types everywhere
find src -type f -exec sed -i "{}" -e "s;u_int;uint;g" -e "s;u_char;uint8_t;g" \;
sed -i src/liboutils/sha1.c -e "s;uint i;uint32_t i;"
}
do_build() {
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS"
}