tarch-hooks/PKGBUILD

55 lines
1.5 KiB
Bash
Raw Normal View History

2024-02-26 13:57:04 +03:00
pkgname="tarch-hooks"
pkgver=1.0
pkgrel=1
pkgdesc="Pacman hooks for Tarch OS to fix various system files"
url="https://gitcast.ru/tarch_os/tarch-bin"
arch=("any")
license=("GPL3")
source=(
"tarch-hook-grub.hook"
"tarch-hook-nm.hook"
"tarch-hooks.hook"
"tarch-hooks-misc"
"tarch-hooks-runner"
"tarch-hook-thunar.hook"
"tarch-hook-zsh.hook"
"tarch-lsb-release.hook"
"tarch-os-release.hook"
"tarch-reboot-required"
"tarch-reboot-required.hook"
)
sha512sums=(
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
)
package() {
local hooks=${pkgdir}/usr/share/libalpm/hooks
local bin=${pkgdir}/usr/bin
install -Dm644 tarch-hooks.hook "${hooks}"/tarch-hooks.hook
install -Dm644 tarch-lsb-release.hook "${hooks}"/tarch-lsb-release.hook
install -Dm644 tarch-os-release.hook "${hooks}"/tarch-os-release.hook
install -Dm644 tarch-reboot-required.hook "${hooks}"/tarch-reboot-required.hook
install -Dm644 tarch-hook-nm.hook "${hooks}"/tarch-hook-nm.hook
install -Dm644 tarch-hook-thunar.hook "${hooks}"/tarch-hook-thunar.hook
install -Dm644 tarch-hook-zsh.hook "${hooks}"/tarch-hook-zsh.hook
install -Dm644 tarch-hook-grub.hook "${hooks}"/tarch-hook-grub.hook
install -Dm755 tarch-hooks-runner "${bin}"/tarch-hooks-runner
install -Dm755 tarch-reboot-required "${bin}"/tarch-reboot-required
install -Dm755 tarch-hooks-misc "${bin}"/tarch-hooks-misc
}