From 376b9dd6fc99f6702276c389f5b61046ea7a4744 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 6 May 2016 19:29:01 +0200 Subject: [PATCH] dosfstools: update to 4.0 - build system has been converted to use autotools - use '--enable-compat-symlinks' to install symlinks for legacy names of the tools - udev support - add patch to fix compilation with musl libc (upstreamed) --- srcpkgs/dosfstools/patches/musl-path_max.patch | 10 ++++++++++ srcpkgs/dosfstools/template | 18 +++++++++--------- 2 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/dosfstools/patches/musl-path_max.patch diff --git a/srcpkgs/dosfstools/patches/musl-path_max.patch b/srcpkgs/dosfstools/patches/musl-path_max.patch new file mode 100644 index 00000000000..e46c87d5e5e --- /dev/null +++ b/srcpkgs/dosfstools/patches/musl-path_max.patch @@ -0,0 +1,10 @@ +--- src/device_info.c.orig ++++ src/device_info.c +@@ -17,6 +17,7 @@ + */ + + ++#include + #include + #include + #include diff --git a/srcpkgs/dosfstools/template b/srcpkgs/dosfstools/template index 7d1730ccc31..488daaa72a5 100644 --- a/srcpkgs/dosfstools/template +++ b/srcpkgs/dosfstools/template @@ -1,17 +1,17 @@ # Template file for 'dosfstools' pkgname=dosfstools -version=3.0.28 +version=4.0 revision=1 -build_style=gnu-makefile -make_install_args="PREFIX=/usr SBINDIR=/usr/bin" +build_style=gnu-configure +configure_args="--enable-compat-symlinks" +hostmakedepends="pkg-config" +makedepends="eudev-libudev-devel" short_desc="DOS filesystem tools" maintainer="Juan RP " -homepage="http://www.daniel-baumann.ch/software/$pkgname" -license="GPL-2" -distfiles="https://github.com/$pkgname/$pkgname/releases/download/v$version/$pkgname-$version.tar.xz" -checksum=ee95913044ecf2719b63ea11212917649709a6e53209a72d622135aaa8517ee2 - -CFLAGS="-D_GNU_SOURCE -Du_int32_t=uint32_t" +homepage="https://github.com/dosfstools/dosfstools" +license="GPL-3" +distfiles="https://github.com/$pkgname/$pkgname/releases/download/v$version/${pkgname}-${version}.tar.xz" +checksum=9037738953559d1efe04fc5408b6846216cc0138f7f9d32de80b6ec3c35e7daf post_install() { rm -rf ${DESTDIR}/usr/share/doc