summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7073f76d07ed1174d3c70f80951049dbf377320e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Markus Hubig <mhubig@gmail.com>
pkgname=sheepdog
pkgver=1.0_rc0
pkgrel=1
pkgdesc="This package provides a distributed storage system for QEMU. It provides highly available block level storage volumes to virtual machines. It supports advanced volume management features such as snapshot, cloning, and thin provisioning."
arch=('i686' 'x86_64')
url="http://sheepdog.github.io/sheepdog/"
license=('GPL2')

depends=('fuse>=2.9.5'
         'corosync>=2.3.5')

optdepends=('qemu: needed on the client'
        'curl: for http request service'
            'fcgi: for http request service')

makedepends=('libqb>=0.17.2'
             'liburcu>=0.8.7'
             'qemu>=2.5.0'
             'yasm>=1.3.0')

source=("https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz")
sha512sums=('8d3fdb58ac4d62e814a11f191d83baa783a7e805f6400eb6807719760f10e49aaad28c68c7c1a95bc535bc1c15722d43458bf4f3342696d58624baab2af1436d')

build() {
    cd "$pkgname-$pkgver"
    ./autogen.sh
    ./configure --enable-sheepfs --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
    make
}

check() {
    cd "$pkgname-$pkgver"
    make -k check
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
}