aboutsummarylogtreecommitdiffstats
path: root/us_da-layout.install
blob: c924330cd29219d7ed44e1d555cd1666ea144749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set -euo pipefail

cd /usr/share/X11/xkb/rules

post_install() {
	/usr/share/libalpm/scripts/install-us_da-layout
}

pre_remove() {
	awk 'BEGIN { f=1 } /BEGIN us_da/ { f=0 } /END us_da/ { f=1; next } f' evdev.xml | sponge evdev.xml
}

pre_upgrade() {
	pre_remove
}

post_upgrade() {
	post_install
}