autogen: fix reproducible build.

This commit is contained in:
Enno Boland 2016-03-03 22:37:36 +01:00
parent 55996440a4
commit bed5593a63

View file

@ -1,7 +1,7 @@
# Template build file for 'autogen'.
pkgname=autogen
version=5.18.4
revision=6
revision=7
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config perl"
@ -18,6 +18,15 @@ replaces="autogen-docs>=0 autogen-devel>=0"
post_install() {
mv -v ${DESTDIR}/usr/share/pkgconfig ${DESTDIR}/usr/lib
if [ "$SOURCE_DATE_EPOCH" ]; then
# repackaging libopts to apply correct mtimes
mkdir libopts
tar xf $DESTDIR/usr/share/autogen/libopts-41.0.16.tar.gz -C libopts
find libopts -print0 | xargs -0 touch --date "@$SOURCE_DATE_EPOCH"
cd libopts
tar cf $DESTDIR/usr/share/autogen/libopts-41.0.16.tar.gz *
fi
}
libopts_package() {