- commit
- 26da277ef02b3d0f38fe3b7a4123dbcfedc1113d
- parent
- 564019ac656d9ceac9b16b14875934797d4f4a98
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-07-01 07:31
PKGBUILD: use update-alternatives
Diffstat
| M | PKGBUILD | 5 | +++++ |
1 files changed, 5 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
@@ -9,4 +9,9 @@ provides='x-terminal-emulator' 9 9 package() { 10 10 make 11 11 make DESTDIR="$pkgdir" install -1 12 -1 13 mkdir -p "$pkgdir/DEBIAN" -1 14 echo 'update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/xiterm 50' > "$pkgdir/DEBIAN/postinst" -1 15 echo 'update-alternatives --remove x-terminal-emulator /usr/bin/xiterm' > "$pkgdir/DEBIAN/prerm" -1 16 chmod +x "$pkgdir/DEBIAN/postinst" "$pkgdir/DEBIAN/prerm" 12 17 }