summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD24
3 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..f8a8b66ebad2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = snazzer-git
+ pkgdesc = btrfs snapshotting and backup system offering snapshot measurement, transport and pruning.
+ pkgver = 0
+ pkgrel = 1
+ url = https://github.com/csirac2/snazzer
+ arch = any
+ license = BSD
+ depends = btrfs-progs
+ source = git+https://github.com/csirac2/snazzer.git
+ sha256sums = SKIP
+
+pkgname = snazzer-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..45d1d7146f6a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+snazzer/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a1617286f051
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Jonne Haß <me@jhass.eu>
+pkgname=snazzer-git
+pkgver=0
+pkgrel=1
+pkgdesc="btrfs snapshotting and backup system offering snapshot measurement, transport and pruning. "
+arch=('any')
+url="https://github.com/csirac2/snazzer"
+license=('BSD')
+depends=('btrfs-progs')
+source=("git+https://github.com/csirac2/snazzer.git")
+
+prepare() {
+ cd "snazzer"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/snazzer"
+ install -Dm755 -t "$pkgdir/usr/bin/$script" snazzer snazzer-measure snazzer-prune-candidates snazzer-receive snazzer-send-wrapper
+ install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+ cp -av doc/* "$pkgdir/usr/share/doc/$pkgname"
+}
+sha256sums=('SKIP')