blob: 5d01bc5a173f97a83570302a14f84d43b4be776f (
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
|
# Maintainer: Kyle McNally <kyle@kmcnally.net>
# Contributor: John Williams <jwilliams4200 liamg reverse&remove moc>
pkgname=snapraid
pkgver=12.3
pkgrel=1
pkgdesc="tool for Snapshot RAID: generate parity files, maintain checksums on data, restore lost data"
arch=('x86_64' 'i686')
url="http://www.snapraid.it/"
license=('GPL3')
depends=('libutil-linux' 'glibc')
source=("https://github.com/amadvance/snapraid/releases/download/v${pkgver}/snapraid-${pkgver}.tar.gz")
sha256sums=('1f27aba6e5db3929474da9c472fc4a3bc51d4a83aa5385af6b09afc9f68d6d44')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix="/usr"
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" prefix="/usr" mandir="/usr/share/man" install
# documentation
install -D -m644 snapraid.conf.example ${pkgdir}/usr/share/${pkgname}/snapraid.conf.example
install -D -m644 AUTHORS ${pkgdir}/usr/share/doc/${pkgname}/AUTHORS
install -D -m644 COPYING ${pkgdir}/usr/share/doc/${pkgname}/COPYING
install -D -m644 HISTORY ${pkgdir}/usr/share/doc/${pkgname}/HISTORY
install -D -m644 INSTALL ${pkgdir}/usr/share/doc/${pkgname}/INSTALL
install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README
install -D -m644 CHECK ${pkgdir}/usr/share/doc/${pkgname}/CHECK
install -D -m644 TODO ${pkgdir}/usr/share/doc/${pkgname}/TODO
}
|