mirror of
https://github.com/moparisthebest/arch-ppa
synced 2025-02-21 21:21:49 -05:00
21 lines
333 B
Plaintext
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
|
||
|
}
|