1 # Maintainer: J.W Birdsong < @ gmail>
2 # Contributor: Igor Nemilentsev <trezorg dog gmail.com>
3 # Contributor: Miroslaw "firestarter" Wojtylak mwojtylak@gmail.com
4 # Based on PKGBUILD from Dan Zwell <dzwell@zwell.net>
6 pkgname=btrfs-progs-git
9 pkgdesc="Btrfs filesystem utilities"
10 arch=("i686" "x86_64")
11 url="http://btrfs.wiki.kernel.org/index.php/Main_Page"
15 provides=('btrfs-progs')
16 conflicts=('btrfs-progs-unstable')
17 nstall="btrfs-progs-git.install"
19 _gitroot="git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git"
20 _gitname="btrfs-progs-unstable"
23 msg "Connecting to GIT server...."
25 if [[ -d $_gitname ]]; then
26 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf ${_gitname}-build
37 cp -a $_gitname ${_gitname}-build
39 sed -i "s|-Werror|-Wno-error|" Makefile
40 make all btrfs-zero-log convert
44 make prefix=$pkgdir/usr bindir=$pkgdir/sbin install
45 install -Dm644 INSTALL "$pkgdir/usr/share/doc/btrfs/README"
46 mv $pkgdir/usr/man $pkgdir/usr/share/
47 mv btrfs-zero-log $pkgdir/sbin
50 # vim:set ts=2 sw=2 et: