New package: ytnef-1.8

This commit is contained in:
Juergen Buchmueller 2016-12-14 14:29:53 +01:00
parent 1fca29af1f
commit e4d6651e31
3 changed files with 57 additions and 0 deletions

View File

@ -2743,3 +2743,4 @@ libkea-asiodns.so.0 libkea-1.1.0_1
libkea-dns++.so.1 libkea-1.1.0_1
libkea-util-io.so.0 libkea-1.1.0_1
libkea-threads.so.1 libkea-1.1.0_1
libytnef.so.0 ytnef-1.8_1

1
srcpkgs/ytnef-devel Symbolic link
View File

@ -0,0 +1 @@
ytnef

55
srcpkgs/ytnef/template Normal file
View File

@ -0,0 +1,55 @@
# Template file for 'ytnef'
pkgname=ytnef
version=1.8
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Yerase's TNEF Stream Reader"
maintainer="Juergen Buchmueller <pullmoll@t-online.de>"
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
do_configure() {
cd ${wrksrc}/ytneflib
autoreconf -fi
./configure ${configure_args}
}
do_build() {
if [ -n "$CROSS_BUILD" ]; then
configure_args+=" --host=${XBPS_TARGET_MACHINE}"
export ac_cv_func_malloc_0_nonnull=yes
fi
cd ${wrksrc}/ytneflib
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
./configure ${configure_args}
make ${makejobs}
}
do_install() {
cd ${wrksrc}/ytnef
make DESTDIR="${DESTDIR}" install
# Cross compiling for some reason installs to /usr/local/bin
if [ -d "${DESTDIR}/usr/local/bin" ]; then
mv "${DESTDIR}/usr/local/bin" "${DESTDIR}/usr"
fi
}
ytnef-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}