diff options
author | kyak | 2015-06-08 16:50:17 +0300 |
---|---|---|
committer | kyak | 2015-06-08 16:50:17 +0300 |
commit | af168c96aaa6d3d0f4d02997a5d1b937cec285ac (patch) | |
tree | 1bc58bc454bb51e70b3e08acde7bc00e62d771e6 /atusb.install | |
download | aur-af168c96aaa6d3d0f4d02997a5d1b937cec285ac.tar.gz |
Initial import
Diffstat (limited to 'atusb.install')
-rw-r--r-- | atusb.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/atusb.install b/atusb.install new file mode 100644 index 000000000000..ffa3101a3823 --- /dev/null +++ b/atusb.install @@ -0,0 +1,21 @@ +post_install() { + echo ">>> DKMS: Module add, build, and install" + dkms install -m atusb -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-atusb | awk '/^Version/{print $3}') + pre_remove $curver +} + +pre_remove() { + echo ">>> DKMS: Module uninstall" + dkms remove -m atusb -v ${1%%-*} --all +} + +post_upgrade() { + post_install ${1%%-*} +} |