Package Details: xkb-switch-git 1.8.5.r10.g2687564-1

Git Clone URL: https://aur.archlinux.org/xkb-switch-git.git (read-only, click to copy)
Package Base: xkb-switch-git
Description: Program that allows to query and change the XKB layout state
Upstream URL: https://github.com/grwlf/xkb-switch
Licenses: MIT
Conflicts: xkb-switch
Provides: xkb-switch
Submitter: None
Maintainer: orestisf
Last Packager: orestisf
Votes: 7
Popularity: 0.000000
First Submitted: 2017-11-17 16:53 (UTC)
Last Updated: 2023-07-23 19:43 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

orestisf commented on 2018-06-05 17:37 (UTC) (edited on 2018-06-05 17:37 (UTC) by orestisf)

Hello, can you please update the PKGBUILD to not install the binaries in /usr/local? I see that you fixed that for the xkb-switch package. You can simplify the process by using DCMAKE_INSTALL_PREFIX:

diff --git a/PKGBUILD b/PKGBUILD
index ef137fc..4652ec9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,14 +17,11 @@ sha1sums=('SKIP')

 build() {
    cd xkb-switch
-   cmake .
+   cmake -DCMAKE_INSTALL_PREFIX=/usr .
    make
 }

 package() {
    cd xkb-switch
    make DESTDIR="$pkgdir/" install
-
-   mkdir "$pkgdir/usr/bin"
-   ln -st "$pkgdir/usr/bin" "/usr/local/bin/xkb-switch"
 }