autogen: fix reproducible build.
This commit is contained in:
parent
55996440a4
commit
bed5593a63
1 changed files with 10 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue