summarylogtreecommitdiffstats
path: root/rt5592sta_linux_patched-dkms.install
diff options
context:
space:
mode:
authortomsik682015-06-09 12:03:47 +0200
committertomsik682015-06-09 12:06:29 +0200
commitdeb3162e68aa4dbb1cb896a32f14253a7cc54e22 (patch)
treec037826bad83f81a4c76b6e97b4b9d44b1c54ec3 /rt5592sta_linux_patched-dkms.install
downloadaur-deb3162e68aa4dbb1cb896a32f14253a7cc54e22.tar.gz
Import from AUR3(pkgrel 3)
Diffstat (limited to 'rt5592sta_linux_patched-dkms.install')
-rw-r--r--rt5592sta_linux_patched-dkms.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/rt5592sta_linux_patched-dkms.install b/rt5592sta_linux_patched-dkms.install
new file mode 100644
index 000000000000..ef5c2afabd66
--- /dev/null
+++ b/rt5592sta_linux_patched-dkms.install
@@ -0,0 +1,18 @@
+# old version (without -$pkgrel): ${1%%-*}
+# new version (without -$pkgrel): ${2%%-*}
+
+post_install() {
+ dkms install rt5592sta_linux_patched-dkms/${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove rt5592sta_linux_patched-dkms/${1%%-*} --all
+}