mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Add Arch .pkg
This commit is contained in:
parent
2306c21591
commit
bfc3508375
10 changed files with 207 additions and 4 deletions
13
pkg/.PKGINFO.in
Normal file
13
pkg/.PKGINFO.in
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
pkgname = @PACKAGE@
|
||||
pkgver = @VERSION@-1
|
||||
pkgdesc = Disk array backup for many large rarely-changed files
|
||||
url = https://www.snapraid.it/
|
||||
builddate = @BUILD_DATE@
|
||||
packager = Andrea Mazzoleni <amadvance@gmail.com>
|
||||
size = @PACKAGE_SIZE@
|
||||
arch = x86_64
|
||||
license = GPL3
|
||||
depend = zlib
|
||||
depend = zstd
|
||||
depend = systemd
|
||||
|
||||
17
pkg/.SRCINFO.in
Normal file
17
pkg/.SRCINFO.in
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
pkgbase = @PACKAGE@
|
||||
pkgdesc = Disk array backup for many large rarely-changed files
|
||||
pkgver = @VERSION@
|
||||
pkgrel = 1
|
||||
url = https://www.snapraid.it/
|
||||
arch = x86_64
|
||||
license = GPL3
|
||||
makedepends = gcc
|
||||
makedepends = make
|
||||
depends = zlib
|
||||
depends = zstd
|
||||
depends = snapraid>=14.0
|
||||
depends = systemd
|
||||
source = https://github.com/amadvance/@PACKAGE@/releases/download/v@PACKAGE_VERSION@/@PACKAGE@-@PACKAGE_VERSION@.tar.gz
|
||||
sha256sums = @SHA256@
|
||||
|
||||
pkgname = @PACKAGE@
|
||||
30
pkg/PKGBUILD.in
Normal file
30
pkg/PKGBUILD.in
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# 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')
|
||||
depends=('zlib' 'zstd' 'snapraid>=14.0' 'systemd')
|
||||
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 --with-init-type=none
|
||||
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 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue