blob: 96708995eb18ddcc9882ce8d83f5d119d766ecbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Electria
pkgname=btwrap-git
pkgver=r111.742996e
pkgrel=1
pkgdesc="Shell wrapper for managing BTRFS snapshots"
arch=(any)
url="https://github.com/Elec3137/btwrap"
license=('GPL-3.0-or-later')
depends=('gawk' 'sudo' 'btrfs-progs' 'grep')
makedepends=('git')
conflicts=('btwrap')
provides=('btwrap')
optdepends=(
'grub-btrfs: to add root snapshots into your grub bootmenu'
'systemd: to use systemd timer and service unit files to cycle snapshots'
)
source=("git+https://github.com/Elec3137/btwrap#branch=main")
sha256sums=('SKIP')
pkgver() {
cd btwrap
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
package() {
cd "$srcdir"
install -d "$pkgdir/usr/bin/"
cp btwrap/btwrap "$pkgdir/usr/bin/"
install -d "$pkgdir/etc/systemd/system/"
cp btwrap/btwrap.timer "$pkgdir/etc/systemd/system/"
cp btwrap/btwrap.service "$pkgdir/etc/systemd/system/"
install -d "$pkgdir/usr/share/libalpm/hooks"
cp btwrap/btwrap-snapshot-cycle.hook "$pkgdir/usr/share/libalpm/hooks/"
cp btwrap/btwrap-grub-update.hook "$pkgdir/usr/share/libalpm/hooks/"
}
|