new: add just-hook for a hook

This commit is contained in:
Yingjie Wang 2025-03-28 23:31:47 -04:00
parent a6e8f7139f
commit ccda9c0495

View File

@ -0,0 +1,26 @@
pkgname="just-hook"
pkgver="1.0"
homepage="https://gitea.phywyj.dynv6.net"
pkgdesc="Just a Hook file"
license=("GPL")
sourses=()
urls=()
md5sums=()
src_prepare() {
cat > test.HOOK << "EOF"
target=(/usr/*)
triggers=("install" "remove")
operation() {
echo "This is a hook."
}
EOF
}
src_build() {
:
}
src_install() {
leaf_install_hook test.HOOK
}