aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapraid/APKBUILD
blob: 548b9529cd891ca487fed0235c40435f53d41c6b (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
# Contributor: Nathan Caldwell <saintdev@gmail.com>
# Maintainer: Nathan Caldwell <saintdev@gmail.com>
pkgname=snapraid
pkgver=11.1
pkgrel=0
pkgdesc="A backup program for disk arrays"
url="http://www.snapraid.it"
arch="all"
license="GPL-3.0"
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
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="1c1b84902131e585890c0743abdb4b323018e68f8a7b2ff196deeeb29df163cba6242c4c2d046eed73ebd47823ec2bdd1c948da71c1423f11c3af3b4a36428d0  snapraid-11.1.tar.gz"