void-packages/srcpkgs/libnfs/template
Jürgen Buchmüller 8f3b5b9384 libnfs: fix build
Since kernel-libc-headers was updated to 4.9.8 the macros `makedev`, `major`
and `minor` are defined in the include file `sys/sysmacros.h`. The definitions
in `sys/types.h` are obsoleted and will be removed soon.

This fix moves the `#include <sys/sysmacros.h>` after the `#include <sys/types.h>`.

Closes #5704
2017-02-09 22:13:05 +01:00

28 lines
759 B
Bash

# Template file for 'libnfs'
pkgname=libnfs
version=1.11.0
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="libtool pkg-config automake"
short_desc="Client library for accessing NFS shares"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/sahlberg/libnfs"
license="GPL-2"
distfiles="https://github.com/sahlberg/libnfs/archive/$pkgname-${version}.tar.gz"
checksum=fc2e45df14d8714ccd07dc2bbe919e45a2e36318bae7f045cbbb883a7854640f
pre_configure() {
autoreconf -fi
}
libnfs-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}