blob: 39eaf491583732e47a4adbce0ff237305275fbd7 (
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
39
40
41
42
43
|
# Maintainer: Zesko
pkgname="limine-snapper-sync"
pkgver=1.6.0
pkgrel=1
pkgdesc="The tool syncs Snapper snapshots with Limine bootloader"
arch=("any")
url="https://gitlab.com/Zesko/limine-snapper-sync"
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
license=("GPL3")
depends=(
'bash'
'java-environment-openjdk>=17'
'limine'
'snapper'
'btrfs-progs'
'inotify-tools'
'libnotify')
optdepends=(
'dunst: Displays a desktop notification for one-click restoration.'
'limine-dracut-support: Automates kernel installation/removal and Limine boot entry management.'
'rsync: Provides an alternative method for restoring snapshots.'
'journalctl-desktop-notification: Sends desktop notifications for errors, including detected hardware issues.'
'b3sum: Blake3 fast hash function that avoids duplication.'
)
makedepends=('git' 'maven')
backup=(etc/limine-snapper-sync.conf)
conflicts=('limine-snapper-sync-git')
sha256sums=('4f8aa62652601874721b9aa4d330a5f8472818f608f503c6f6a7f89e7e194505')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
mvn clean package
}
package() {
cd "$srcdir/${pkgname}-${pkgver}"
src_path="install/arch-linux/"
install -dm 755 $src_path/usr/share/java/
install -Dm 644 target/limine-snapper-sync.jar $src_path/usr/share/java/
install -dm 755 $src_path/usr/share/doc/limine-snapper-sync/
cp -r README.md CHANGELOG.md screenshots $src_path/usr/share/doc/limine-snapper-sync/
cp -r $src_path/usr $src_path/etc "$pkgdir"
}
|