mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
29 lines
893 B
Text
29 lines
893 B
Text
# Maintainer: Andrea Mazzoleni <amadvance@gmail.com>
|
|
pkgname=@PACKAGE@
|
|
pkgver=@VERSION@
|
|
pkgrel=1
|
|
pkgdesc="Disk array backup for many large rarely-changed files"
|
|
arch=('x86_64')
|
|
url="https://www.snapraid.it/"
|
|
license=('GPL3')
|
|
makedepends=('gcc' 'make')
|
|
install="${pkgname}.install"
|
|
source=("https://github.com/amadvance/@PACKAGE@/releases/download/v@PACKAGE_VERSION@/@PACKAGE@-@PACKAGE_VERSION@.tar.gz")
|
|
sha256sums=('@SHA256@')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
# Add example config and docs (Matches your script's logic)
|
|
install -Dm644 snapraid.conf.example "$pkgdir/usr/share/doc/$pkgname/snapraid.conf.example"
|
|
|
|
# Arch Policy: License must also be in the license directory
|
|
install -Dm644 LICENSES/GPL-3.0 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
}
|