void-packages/srcpkgs/xfsprogs/template
2015-07-30 06:20:06 +02:00

36 lines
1.1 KiB
Bash

# Template file for 'xfsprogs'
pkgname=xfsprogs
version=3.2.4
revision=1
build_pie=yes
build_style=gnu-configure
configure_args="--enable-readline=yes --enable-blkid=yes --enable-lib64=no"
hostmakedepends="libuuid-devel"
makedepends="libuuid-devel libblkid-devel readline-devel"
short_desc="Utilities for managing the XFS filesystem"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://oss.sgi.com/projects/xfs/"
distfiles="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-${version}.tar.gz"
checksum=dde65ead82d3cbfa9b4ded9796b6d22095d7d759a22d41ae6f1a4ec458bb0465
do_install() {
make DIST_ROOT=${DESTDIR} install install-dev
# Remove unneeded stuff
rm -rf ${DESTDIR}/usr/share/doc
rm -f ${DESTDIR}/lib*/*.{a,la}
rm -f ${DESTDIR}/usr/lib/*.{a,so}
# Move stuff to /usr.
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
mv ${DESTDIR}/lib*/* ${DESTDIR}/usr/lib
}
xfsprogs-devel_package() {
depends="libuuid-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}