From 6e5750f644c2a5c974bbccca7f93525a7a0805a3 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Tue, 28 Nov 2023 19:00:40 +0000 Subject: [PATCH] ytnef: update to 2.1.2. --- srcpkgs/ytnef/template | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/srcpkgs/ytnef/template b/srcpkgs/ytnef/template index 2ffa0b80bfe..ed568038f8e 100644 --- a/srcpkgs/ytnef/template +++ b/srcpkgs/ytnef/template @@ -1,6 +1,6 @@ # Template file for 'ytnef' pkgname=ytnef -version=2.0 +version=2.1.2 revision=1 build_style=gnu-configure hostmakedepends="automake libtool" @@ -8,8 +8,8 @@ short_desc="Yerase's TNEF Stream Reader" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/Yeraze/ytnef" -distfiles="https://github.com/Yeraze/ytnef/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" -checksum=bb12f34572de89e4825fce98d2d235d93cd34b2c41fed0074ebfa89af9e724a9 +distfiles="https://github.com/Yeraze/ytnef/archive/v${version}.tar.gz" +checksum=340f03f495884611209e9c0bc943fad06ce920e8c79655aa228d5ca7418dc360 pre_configure() { ./autogen.sh @@ -20,17 +20,18 @@ do_build() { configure_args+=" --host=${XBPS_TARGET_MACHINE}" export ac_cv_func_malloc_0_nonnull=yes fi - cd ${wrksrc}/lib - make ${makejobs} DESTDIR="${DESTDIR}" install - mv "${DESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE}" "${DESTDIR}/usr/lib" + ( + cd lib + make ${makejobs} DESTDIR="${DESTDIR}" install + mv "${DESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE}" "${DESTDIR}/usr/lib" + ) export CFLAGS+=" -I${DESTDIR}/usr/include" export LDFLAGS+=" -L${DESTDIR}/usr/lib" - cd ${wrksrc} make ${makejobs} } do_install() { - cd ${wrksrc}/ytnef + cd ytnef make DESTDIR="${DESTDIR}" install # Cross compiling for some reason installs to /usr/local/bin if [ -d "${DESTDIR}/usr/local/bin" ]; then