new: add just-hook for a hook
This commit is contained in:
parent
a6e8f7139f
commit
ccda9c0495
26
test/just-hook-1.0.PKGBUILD
Normal file
26
test/just-hook-1.0.PKGBUILD
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user