btrfs-progs: update to 0.20rc1; cross build support.

This commit is contained in:
Juan RP 2013-02-11 13:27:47 +01:00
parent a847788472
commit 59768ec137
1 changed files with 13 additions and 15 deletions

View File

@ -1,29 +1,27 @@
# Template file for 'btrfs-progs'
pkgname=btrfs-progs
_distver=0.19
_snapver=20121005
version="${_snapver}.${_distver}"
wrksrc="${pkgname}-${_distver}.${_snapver}"
_distver=0.20-rc1.1
version=0.20rc1.1
revision=1
wrksrc="${pkgname}-${_distver}"
makedepends="acl-devel libuuid-devel e2fsprogs-devel"
crossmakedepends="${makedepends}"
short_desc="Btrfs filesystem utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://btrfs.wiki.kernel.org/"
distfiles="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-${_distver}.${_snapver}.tar.xz"
checksum=7aa5c043f6695c580ba7457d41a4b9cfb7f55a72ddd4d27064da7b24b1ef8ece
long_desc="
This packages provides the userspace utilities required to
create/format/manipulate Btrfs filesystems."
distfiles="ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${_distver}.tar.xz"
checksum=6d13ffd167ee1cc1a8844f7c656db0472730a3bb8fa561e9361957b1ec502f2b
do_build() {
make CFLAGS="${CFLAGS}" ${makejobs}
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
CC="$XBPS_CROSS_TRIPLET-gcc"
else
CC="gcc"
fi
make CC="$CC" CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {
make prefix=${DESTDIR}/usr install
# fix manpage location.
vmkdir usr/share
vmove usr/man usr/share
make prefix=${DESTDIR}/usr mandir=${DESTDIR}/usr/share/man install
}