summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVVL2018-08-30 01:13:03 +0300
committerVVL2018-08-30 01:13:03 +0300
commitcb5b51e015337c5e081d5ec996d0b712b3aa2b7a (patch)
treed24e0861b318abaa3f601dbe7922e6f26227960d
downloadaur-cb5b51e015337c5e081d5ec996d0b712b3aa2b7a.tar.gz
initial release
-rw-r--r--.SRCINFO15
-rwxr-xr-xPKGBUILD18
2 files changed, 33 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1b132d18d54
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Wed Aug 29 22:12:44 UTC 2018
+pkgbase = btrfs-autosnap
+ pkgdesc = Pacman hook which makes btrfs root snapshot before any action.
+ pkgver = 0.9.1
+ pkgrel = 1
+ arch = any
+ license = MIT
+ depends = btrfs-tools
+ depends = util-linux
+ source = https://github.com/vvl-rulez/btrfs-autosnap/archive/v0.9.1.tar.gz
+ sha256sums = 7f77e0040461e3bfe1dc8a3bf7abc2e7d3c3dc68d048e664406fc5e524af4ec4
+
+pkgname = btrfs-autosnap
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..26424d46365
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,18 @@
+# Maintainer: VVL <me@ivvl.ru>
+# Contributor: VVL <me@ivvl.ru>
+
+pkgname=btrfs-autosnap
+pkgver=0.9.1
+pkgrel=1
+pkgdesc="Pacman hook which makes btrfs root snapshot before any action."
+arch=(any)
+license=('MIT')
+source=("https://github.com/vvl-rulez/btrfs-autosnap/archive/v$pkgver.tar.gz")
+depends=('btrfs-tools' 'util-linux')
+sha256sums=('7f77e0040461e3bfe1dc8a3bf7abc2e7d3c3dc68d048e664406fc5e524af4ec4')
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm644 01-btrfs-autosnap.hook "${pkgdir}/usr/share/libalpm/hooks/01-btrfs-autosnap.hook"
+ install -Dm755 btrfs-autosnap.sh "$pkgdir/usr/bin/btrfs-autosnap"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}