updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / snapraid / PKGBUILD
blob2222cddd6c8919733d795a3b4d1bea3d6e81b204
1 #Maintainer: John Williams <jwilliams4200 gmail>
2 pkgname=snapraid
3 pkgver=1.7
4 pkgrel=3
5 pkgdesc="Snapshot RAID, backup storage arrays and maintain checksums on all data"
6 arch=('x86_64' 'i686')
7 url="http://snapraid.sourceforge.net/"
8 license=('GPL3')
9 depends=('openssl')
10 source=("http://sourceforge.net/projects/snapraid/files/snapraid-${pkgver}.tar.gz"
11 "${pkgname}_num-content.diff.patch")
12 md5sums=('f705819e9f9be14fbfcbffdb581f1404'
13          '190bbd077f4123fca9be7527bb6561c8')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
17   patch -uN state.c ../${pkgname}_num-content.diff.patch || return 1
18   ./configure --prefix=/usr
19   make 
22 check() {
23   cd "$srcdir/$pkgname-$pkgver"
24   make check || return 1
27 package() {
28   cd "$srcdir/$pkgname-$pkgver"
29   make DESTDIR="$pkgdir/" install 
30   install -D -m644 snapraid.conf.example $pkgdir/usr/share/$pkgname/snapraid.conf.example
31   install -D -m644 AUTHORS $pkgdir/usr/share/$pkgname/AUTHORS
32   install -D -m644 HISTORY $pkgdir/usr/share/$pkgname/HISTORY
33   install -D -m644 README $pkgdir/usr/share/$pkgname/README
34   install -D -m644 TODO $pkgdir/usr/share/$pkgname/TODO