summarylogtreecommitdiffstats
path: root/tuxedo-keyboard.install
diff options
context:
space:
mode:
authorSteven Seifried2019-11-08 21:37:00 +0100
committerSteven Seifried2019-11-08 21:37:00 +0100
commit73491d905c5d7d171345a7cb8438a82c28128ac7 (patch)
treead994f1495f667bb5feed7c00f52bbfcdb08708c /tuxedo-keyboard.install
downloadaur-73491d905c5d7d171345a7cb8438a82c28128ac7.tar.gz
Add files
Diffstat (limited to 'tuxedo-keyboard.install')
-rw-r--r--tuxedo-keyboard.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/tuxedo-keyboard.install b/tuxedo-keyboard.install
new file mode 100644
index 000000000000..36dfd7cecc4c
--- /dev/null
+++ b/tuxedo-keyboard.install
@@ -0,0 +1,18 @@
+# old version (without -$pkgrel): ${1%%-*}
+# new version (without -$pkgrel): ${2%%-*}
+
+post_install() {
+ dkms install tuxedo-keyboard/${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove tuxedo-keyboard/${1%%-*} --all
+}