ytnef: update to 2.1.2.

This commit is contained in:
Mohammed Anas 2023-11-28 19:00:40 +00:00 committed by Duncan Overbruck
parent 926e938d53
commit 6e5750f644

View File

@ -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 <orphan@voidlinux.org>"
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