Create shared / fast track for certain packages

This commit is contained in:
Ryan Hughes
2026-01-10 20:18:35 -05:00
parent 1dfa83863d
commit 45a356eb70
253 changed files with 566 additions and 458 deletions
-30
View File
@@ -1,30 +0,0 @@
pkgbase = limine-snapper-sync
pkgdesc = The tool syncs Limine snapshot entries with Snapper snapshots.
pkgver = 1.19.1
pkgrel = 1
url = https://gitlab.com/Zesko/limine-snapper-sync
arch = any
license = GPL3
makedepends = git
makedepends = jdk21-openjdk
makedepends = maven
depends = bash
depends = java-runtime-headless>=17
depends = limine
depends = snapper
depends = btrfs-progs
depends = inotify-tools
depends = libnotify
optdepends = limine-dracut-support: It automates kernel installation/removal and Limine boot entry management.
optdepends = limine-mkinitcpio-hook: It automates kernel installation/removal and Limine boot entry management.
optdepends = snap-pac: triggers Snapper to create snapshots during system updates.
optdepends = rsync: Alternative method for restoring snapshots.
optdepends = journalctl-desktop-notification: Sends desktop notifications for errors, including detected hardware issues.
optdepends = b3sum: Fast Blake3 hash function to prevent duplication.
optdepends = xxhash: Fast hashing utility for deduplication with shorter hashes.
conflicts = limine-snapper-sync-git
backup = etc/limine-snapper-sync.conf
source = limine-snapper-sync-1.19.1.tar.gz::https://gitlab.com/Zesko/limine-snapper-sync/-/archive/1.19.1/limine-snapper-sync-1.19.1.tar.gz
sha256sums = 893aee35dc33e9e8e80397c527aa914d48ffb9301757241af9195cdced173582
pkgname = limine-snapper-sync
-4
View File
@@ -1,4 +0,0 @@
src
pkg
limine-snapper-sync*
clean.sh
-56
View File
@@ -1,56 +0,0 @@
# Maintainer: Zesko
pkgname="limine-snapper-sync"
pkgver=1.19.1
pkgrel=1
pkgdesc="The tool syncs Limine snapshot entries with Snapper snapshots."
arch=("any")
url="https://gitlab.com/Zesko/limine-snapper-sync"
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
license=("GPL3")
_jre_version=17
_jdk_version=21
depends=(
'bash'
'java-runtime-headless>='${_jre_version}
'limine'
'snapper'
'btrfs-progs'
'inotify-tools'
'libnotify')
optdepends=(
'limine-dracut-support: It automates kernel installation/removal and Limine boot entry management.'
'limine-mkinitcpio-hook: It automates kernel installation/removal and Limine boot entry management.'
'snap-pac: triggers Snapper to create snapshots during system updates.'
'rsync: Alternative method for restoring snapshots.'
'journalctl-desktop-notification: Sends desktop notifications for errors, including detected hardware issues.'
'b3sum: Fast Blake3 hash function to prevent duplication.'
'xxhash: Fast hashing utility for deduplication with shorter hashes.'
)
makedepends=('git' 'jdk21-openjdk' 'maven')
backup=(etc/limine-snapper-sync.conf)
conflicts=('limine-snapper-sync-git')
sha256sums=('893aee35dc33e9e8e80397c527aa914d48ffb9301757241af9195cdced173582')
prepare() {
unset JAVA_OPTS JDK_JAVA_OPTIONS JAVA_TOOL_OPTIONS
JAVA_HOME=/usr/lib/jvm/java-${_jdk_version}-openjdk
if ! command -v ${JAVA_HOME}/bin/javac >/dev/null 2>&1; then
echo "Error: ${JAVA_HOME}/bin/javac not found." >&2
return 1
fi
}
build() {
cd "$srcdir/${pkgname}-${pkgver}"
JAVA_HOME=/usr/lib/jvm/java-${_jdk_version}-openjdk 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"
}