arch-ppa/src/evdi-git/evdi-git.install

21 lines
333 B
Plaintext

# old version (without -$pkgrel): ${1%%-*}
# new version (without -$pkgrel): ${2%%-*}
post_install() {
echo 'DKMS install...'
dkms install evdi/${1%%-*}
}
pre_upgrade() {
pre_remove ${2%%-*}
}
post_upgrade() {
post_install ${1%%-*}
}
pre_remove() {
echo 'DKMS remove...'
dkms remove evdi/${1%%-*} --all
}