linuxdabbler / personal-dot-files

personal dot files from my debian system
38 stars 24 forks source link

BTRFS script rewrite (pure bash) #4

Open HeCodes2Much opened 1 year ago

HeCodes2Much commented 1 year ago

BTRFS script rewrite (pure bash) if you want it :) i did this a few months back when i saw your video on this subject :)

HeCodes2Much commented 1 year ago

also has a pacman hook if you wanted it also below is the PKGBUILD for arch users i would of added it to the AUR but someone else has one there that uses snapper btrfs-snapshots (AUR)

# Maintainer: The-Repo-Club <The-Repo-Club@github.com>
# Contributor: The-Repo-Club <The-Repo-Club@github.com>

pkgname=btrfs-snapshots
pkgver=2021.09.23
pkgrel=1
pkgdesc="addons for btrfs snapshots"
url="https://github.com/The-Repo-Club/$pkgname"
arch=('any')
groups=('therepoclub')
license=('GPL3')
depends=('bash', 'jq')
provides=($pkgname)
source=("${pkgname}-$pkgver.tar.gz::${url}/archive/$pkgver.tar.gz")
sha256sums=('af5df3e8f49ac204c4d5d55f2530d416baa433c5d8cebee719101331761b7603')

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}