void-packages/srcpkgs/xfsprogs/template

45 lines
1.2 KiB
Plaintext

# Template file for 'xfsprogs'
pkgname=xfsprogs
version=3.1.11
revision=3
makedepends="libuuid-devel libblkid-devel readline-devel>=6.3"
replaces="xfsprogs-libs>=0"
short_desc="Utilities for managing the XFS filesystem"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://oss.sgi.com/projects/xfs/"
distfiles="ftp://ftp.archlinux.org/other/xfsprogs/${pkgname}-${version}.tar.gz"
checksum=adf4980177b5c890c1ca86b9c0e3e4d69a3f95bfc01746844280c2393cf4d6be
do_configure() {
export DEBUG=-DNDEBUG
configure_args+=" --bindir=/usr/bin --sbindir=/usr/bin --enable-readline=yes --enable-blkid=yes --enable-lib64=no "
./configure ${configure_args}
}
do_build() {
make
}
do_install() {
make DIST_ROOT=${DESTDIR} install install-dev
# Remove unneeded stuff
rm -rf ${DESTDIR}/usr/share/doc
rm -f ${DESTDIR}/usr/share/man/man5/proj*
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
}
}