aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapraid/APKBUILD
blob: a4b4d736cbdd083cccaf37fa552aed7292cdd8d2 (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
# Contributor: Nathan Caldwell <saintdev@gmail.com>
# Maintainer: Nathan Caldwell <saintdev@gmail.com>
pkgname=snapraid
pkgver=11.0
pkgrel=0
pkgdesc="A backup program for disk arrays"
url="http://www.snapraid.it"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/amadvance/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="b3abdf5ae44224234355e38c8032eb5d  snapraid-11.0.tar.gz"
sha256sums="30a72b8853ea750128c96784b73bb55f7faa4b16367b2e03f40c1f78515c5771  snapraid-11.0.tar.gz"
sha512sums="d2c27b4b0eaecbede685c8a7607e47a9abe43d6d3577398765507c413c2dea524602d1d854308633b58271912f9f7fd04a8772adbc98278e4703a451cda065f5  snapraid-11.0.tar.gz"