From 5c9da6148964356fb92fa119a4c93433a08cc95e Mon Sep 17 00:00:00 2001 From: Recolic K <bensl@microsoft.com> Date: Mon, 27 Sep 2021 17:31:55 +0800 Subject: [PATCH] code almost finished --- PKGBUILD | 16 +++++++++++----- .../55-check-boot-mounted.hook | 0 .../85-call-kernel-rename.hook | 0 .../hook-check-bootdir-mounted.sh | 0 .../hook-kernel-rename.sh | 0 .../shared-bootdir-helper-multi-kparam.cfg | 0 .../shared-bootdir-helper-multi-kparam.sh | 0 7 files changed, 11 insertions(+), 5 deletions(-) rename 55-check-boot-mounted.hook => src/55-check-boot-mounted.hook (100%) rename 85-call-kernel-rename.hook => src/85-call-kernel-rename.hook (100%) rename hook-check-bootdir-mounted.sh => src/hook-check-bootdir-mounted.sh (100%) rename hook-kernel-rename.sh => src/hook-kernel-rename.sh (100%) rename shared-bootdir-helper-multi-kparam.cfg => src/shared-bootdir-helper-multi-kparam.cfg (100%) rename shared-bootdir-helper-multi-kparam => src/shared-bootdir-helper-multi-kparam.sh (100%) diff --git a/PKGBUILD b/PKGBUILD index 2c25a55..6b75352 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,11 +1,12 @@ # Maintainer: Recolic Keghart <root@recolic.net> # Original repo: https://git.recolic.net/root/shared-bootdir-helper +# Mirror: https://github.com/recolic/shared-bootdir-helper pkgname=shared-bootdir-helper pkgver=1.0 pkgrel=1 -pkgdesc="Allow multiple linux installations to share the same /boot directory. Useful for deniable encryption. " -url="https://github.com/recolic/$pkgname" +pkgdesc="Allow multiple linux installations to share the same /boot directory, even with different kernel parameters. " +url="https://git.recolic.net/root/$pkgname" license=("GPL3") arch=("any") depends=("bash" "sed" "grep" "mkinitcpio") @@ -21,8 +22,13 @@ sha256sums=( ) package() { - mkdir -p "$pkgdir/opt" "$pkgdir/usr/bin" && - cp -r "$pkgname-$pkgver" "$pkgdir/opt/vivado-wrapper" && - ln -s "/opt/vivado-wrapper/vivado-wrapper" "$pkgdir/usr/bin/vivadow" + echo "DO NOT INSTALL ME! it's not finished..." + return 1 + + mkdir -p "$pkgdir/etc" "$pkgdir/usr/bin" "$pkgdir/usr/share/libalpm/hooks" && + cp src/*.cfg "$pkgdir/etc/" && + cp src/*.sh "$pkgdir/usr/bin/" && + cp src/*.hook "$pkgdir/usr/share/libalpm/hooks/" || + return $? } diff --git a/55-check-boot-mounted.hook b/src/55-check-boot-mounted.hook similarity index 100% rename from 55-check-boot-mounted.hook rename to src/55-check-boot-mounted.hook diff --git a/85-call-kernel-rename.hook b/src/85-call-kernel-rename.hook similarity index 100% rename from 85-call-kernel-rename.hook rename to src/85-call-kernel-rename.hook diff --git a/hook-check-bootdir-mounted.sh b/src/hook-check-bootdir-mounted.sh similarity index 100% rename from hook-check-bootdir-mounted.sh rename to src/hook-check-bootdir-mounted.sh diff --git a/hook-kernel-rename.sh b/src/hook-kernel-rename.sh similarity index 100% rename from hook-kernel-rename.sh rename to src/hook-kernel-rename.sh diff --git a/shared-bootdir-helper-multi-kparam.cfg b/src/shared-bootdir-helper-multi-kparam.cfg similarity index 100% rename from shared-bootdir-helper-multi-kparam.cfg rename to src/shared-bootdir-helper-multi-kparam.cfg diff --git a/shared-bootdir-helper-multi-kparam b/src/shared-bootdir-helper-multi-kparam.sh similarity index 100% rename from shared-bootdir-helper-multi-kparam rename to src/shared-bootdir-helper-multi-kparam.sh -- GitLab