diff options
author | Steven Xu | 2016-12-25 18:50:39 -0600 |
---|---|---|
committer | Steven Xu | 2016-12-25 18:50:39 -0600 |
commit | a18ac7a5a2715df5f65335fe53e71d2e57976426 (patch) | |
tree | 6c45cd77b9a3f909075b68c259f380db4acd2842 /douane-dkms-git.install | |
parent | 4a7a72b2fdbb0d7e6006943a5fd7c2b89571195f (diff) | |
download | aur-a18ac7a5a2715df5f65335fe53e71d2e57976426.tar.gz |
Fix dir and md5sums, pkgrel to 2
Diffstat (limited to 'douane-dkms-git.install')
-rw-r--r--[l---------] | douane-dkms-git.install | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/douane-dkms-git.install b/douane-dkms-git.install index 881825df91f3..efdeb0e2126b 120000..100644 --- a/douane-dkms-git.install +++ b/douane-dkms-git.install @@ -1 +1,15 @@ -douane-dkms.install
\ No newline at end of file +post_install() { + dkms install -m douane -v ${1%%-*} +} +pre_upgrade() { + local curver=${2%%-*} + # $2 is unset due to a bug. Query current version using pacman as fallback + [ -n "$curver" ] || curver=$(pacman -Qi douane-dkms | awk '/^Version/{print $3}') + pre_remove $curver +} +post_upgrade() { + post_install ${1%%-*} +} +pre_remove() { + dkms remove -m douane -v ${1%%-*} --all +} |