updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / btrfs-progs-git / PKGBUILD
blobed6bbda0768cb64f957bafd6fc84074b22438a3b
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
7 pkgver=20111031
8 pkgrel=1
9 pkgdesc="Btrfs filesystem utilities"
10 arch=("i686" "x86_64")
11 url="http://btrfs.wiki.kernel.org/index.php/Main_Page"
12 license=('GPL')
13 depends=('e2fsprogs')
14 makedepends=('git')
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"
22 build() {
23   msg "Connecting to GIT server...."
25   if [[ -d $_gitname ]]; then
26     cd $_gitname && git pull origin
27     cd ..
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
35   
36   rm -rf ${_gitname}-build
37   cp -a $_gitname ${_gitname}-build
38   cd ${_gitname}-build
39   sed -i "s|-Werror|-Wno-error|" Makefile
40   make  all btrfs-zero-log convert 
42 package() {
43   cd $_gitname-build
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: