blob: 9b412c79866f4ab47c998f6eaa2fde2cd5296842 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
echo ">>> DKMS: Module add, build, and install"
dkms install -m hid-sony -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=$(LANG=C pacman -Qi dkms-hid-sony-shanwan | awk '/^Version/{print $3}')
pre_remove $curver
}
pre_remove() {
echo ">>> DKMS: Module uninstall"
dkms remove -m hid-sony -v ${1%%-*} --all
}
post_upgrade() {
post_install ${1%%-*}
}
|