PKGBUILDs/alarm/dkms-8192cu/dkms-8192cu.install
Kevin Mihelich 7277eae8c9 aur updates
2014-06-21 02:57:32 +00:00

16 lines
431 B
Text

post_install() {
dkms install -m 8192cu -v ${1%%-*}
}
pre_upgrade() {
local curver=${2%%-*}
# $2 is unset due to a bug. See, https://bugs.archlinux.org/task/32278
# Query current version using pacman as fallback
[ -n "$curver" ] || curver=$(pacman -Q dkms-8192cu | cut -d' ' -f2)
pre_remove $curver
}
post_upgrade() {
post_install ${1%%-*}
}
pre_remove() {
dkms remove -m 8192cu -v ${1%%-*} --all
}