void-packages/srcpkgs/xfsprogs/template
2013-04-16 00:36:29 +02:00

49 lines
1.2 KiB
Text

# Template file for 'xfsprogs'
pkgname=xfsprogs
version=3.1.10
revision=2
makedepends="libuuid-devel libblkid-devel readline-devel"
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=9ec8dc77bf3bc114c3ba89f87316a32e3097efb3e7fc44df23421614bb21aa6c
do_configure() {
export DEBUG=-DNDEBUG
./configure ${CONFIGURE_SHARED_ARGS} \
--enable-readline=yes --enable-blkid=yes --enable-lib64=no
}
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/sbin
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib
}
xfsprogs-devel_package() {
depends="libuuid-devel xfsprogs>=${version}"
short_desc="${short_desc} -- development files"
pkg_install() {
vmove usr/include
vmove usr/share/man/man3
}
}
xfsprogs_package() {
replaces="xfsprogs-libs>=0"
pkg_install() {
vmove usr
}
}