Commit 27e6337c authored by philm's avatar philm
Browse files

btrfs-progs: add missing PKGBUILD

parent aebabf74
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# Maintainer (x86_64): Daniele Cocca <jmc@chakra-project.org>
#
pkgname=btrfs-progs
pkgver=0.19.20120211
pkgrel=1
pkgdesc="Btrfs filesystem utilities."
license=('GPL2')
arch=('i686' 'x86_64')
depends=('glibc' 'e2fsprogs')
url="http://btrfs.wiki.kernel.org/"
replaces=('btrfs-progs-git')
conflicts=('btrfs-progs-git')
source=("http://chakra.sourceforge.net/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz")
md5sums=("a577661d4ffbc96e615f0d80bb7a3b41")
# create tarball: source PKGBUILD && mksource
mksource() {
rm -vRf ${pkgname}-${pkgver}
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git ${pkgname}-${pkgver}
rm -vRf ${pkgname}-${pkgver}/.git
pushd ${pkgname}-${pkgver}
popd
tar -cvJf ${pkgname}-${pkgver}.tar.xz ${pkgname}-${pkgver}/*
md5sum ${pkgname}-${pkgver}.tar.xz
}
build() {
cd $srcdir/${pkgname}-${pkgver}
make CFLAGS="$CFLAGS" all convert
}
package() {
cd $srcdir/${pkgname}-${pkgver}
make prefix=$pkgdir/usr install
# fix manpage
mkdir -p $pkgdir/usr/share/
mv $pkgdir/usr/man $pkgdir/usr/share/man
mkdir -p ${pkgdir}/sbin
ln -sf /usr/bin/btrfs ${pkgdir}/sbin/btrfs
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment