diff --git a/srcpkgs/ytnef/template b/srcpkgs/ytnef/template index dd7d4d92306..3831f444d5a 100644 --- a/srcpkgs/ytnef/template +++ b/srcpkgs/ytnef/template @@ -1,6 +1,6 @@ # Template file for 'ytnef' pkgname=ytnef -version=1.8 +version=1.9 revision=1 build_style=gnu-configure hostmakedepends="automake libtool" @@ -9,12 +9,10 @@ maintainer="Juergen Buchmueller " license="GPL-2" homepage="https://github.com/Yeraze/ytnef" distfiles="https://github.com/Yeraze/ytnef/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" -checksum=f486a9a020ba8be1c0aa110d0ed0b5fd257f72943b0dbe16006ea065e89f3dd2 +checksum=388bc35afe41adfb84d62ed1222da93b7ed6244f0cef8e563fb2fd33bbc412c7 -do_configure() { - cd ${wrksrc}/ytneflib - autoreconf -fi - ./configure ${configure_args} +pre_configure() { + ./autogen.sh } do_build() { @@ -22,15 +20,14 @@ do_build() { configure_args+=" --host=${XBPS_TARGET_MACHINE}" export ac_cv_func_malloc_0_nonnull=yes fi - cd ${wrksrc}/ytneflib + cd ${wrksrc}/lib make ${makejobs} DESTDIR="${DESTDIR}" install if [ -d "${DESTDIR}/usr/lib32" ]; then mv "${DESTDIR}/usr/lib32" "${DESTDIR}/usr/lib" fi - export CFLAGS+=" -I ${DESTDIR}/usr/include" - export LDFLAGS+=" -L ${DESTDIR}/usr/lib" - cd ${wrksrc}/ytnef - autoreconf -fi + export CFLAGS+=" -I${DESTDIR}/usr/include" + export LDFLAGS+=" -L${DESTDIR}/usr/lib" + cd ${wrksrc} ./configure ${configure_args} make ${makejobs} }