summarylogtreecommitdiffstats
path: root/evdi.install
diff options
context:
space:
mode:
authorPlusMinus02016-09-16 09:42:41 +0200
committerPlusMinus02016-09-16 09:42:41 +0200
commitda141acce96ff99593cb0ed81dd883b639fb9897 (patch)
treecc054a08f9faa5ce597bbe9e1263edc3e4c3a242 /evdi.install
downloadaur-da141acce96ff99593cb0ed81dd883b639fb9897.tar.gz
Initial commit for evdi
Diffstat (limited to 'evdi.install')
-rw-r--r--evdi.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/evdi.install b/evdi.install
new file mode 100644
index 00000000000..082dbc17f60
--- /dev/null
+++ b/evdi.install
@@ -0,0 +1,18 @@
+# old version (without -$pkgrel): ${1%%-*}
+# new version (without -$pkgrel): ${2%%-*}
+
+post_install() {
+ dkms install evdi/${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove evdi/${1%%-*} --all
+}