Package Details: keyboard-configurator 1.0.0-2

Git Clone URL: https://aur.archlinux.org/keyboard-configurator.git (read-only, click to copy)
Package Base: keyboard-configurator
Description: Configures keymap and backlight of System76 keyboards.
Upstream URL: https://github.com/pop-os/keyboard-configurator
Keywords: configurator keyboard system76
Licenses: GPL3
Submitter: ahoneybun_76
Maintainer: ahoneybun_76
Last Packager: ahoneybun_76
Votes: 1
Popularity: 0.55
First Submitted: 2021-05-13 18:22
Last Updated: 2021-06-02 19:22

Latest Comments

ahoneybun_76 commented on 2021-06-02 19:37

Should be updated now.

ahoneybun_76 commented on 2021-06-02 18:42

Ah I didn't see the minus for that line.

yochananmarqos commented on 2021-06-02 18:10

@ahoneybun_76: You added make install but forgot to remove the install lines. Check my diff again. Don't forget to bump the pkgrel as well.

ahoneybun_76 commented on 2021-06-02 17:07

Alright updated as everything built in the chroot and works well.

ahoneybun_76 commented on 2021-06-02 16:05

@yochananmarqos,

This is my first AUR package in a while so I'm sure it could be even better. I'll work on that change now once I get my chroot back up and running.

yochananmarqos commented on 2021-06-01 19:09

@ahoneybun_76:

All those dependencies are not required to build. A good portion of them gtk3 depends on. Speaking of which, the package also depends on it.

Why use a pkgbase when there's only one package? Will there be split packages later?

No reason to install the files manually when you can use make install.

--- PKGBUILD-a  2021-06-01 13:04:15.478658310 -0600
+++ PKGBUILD-b  2021-06-01 13:05:14.513462830 -0600
@@ -7,7 +7,7 @@
 arch=('x86_64')
 url="https://github.com/pop-os/keyboard-configurator"
 license=('GPL3')
-makedepends=('atk' 'at-spi2-atk' 'at-spi2-core' 'base' 'cairo' 'dbus' 'expat' 'fontconfig' 'freetype2' 'fribidi' 'gdk-pixbuf2' 'glib2' 'graphite' 'gtk3' 'harfbuzz' 'hidapi' 'libcap' 'libcloudproviders' 'libdatrie' 'libepoxy' 'libffi' 'libgcrypt' 'libgpg-error' 'libjpeg-turbo' 'libpng' 'libxrender' 'libthai' 'libtiff' 'libx11' 'libxau' 'libxcb' 'libxcomposite' 'libxcursor' 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxi' 'libxinerama' 'libxkbcommon' 'libxrandr' 'lz4' 'pango' 'pcre' 'pixman' 'rust' 'systemd-libs' 'util-linux-libs' 'wayland' 'xz' 'zlib' 'zstd')
+makedepends=('gtk3' 'rust' 'systemd')
 source=("$pkgbase-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
 sha256sums=('96d2afd18641c66be6503283a5d90afd6737de1f14d4425f1a2e45057411043c')

@@ -18,12 +18,9 @@

 package_keyboard-configurator() {
    pkgdesc="System76 GUI for managing keyboards"
-   depends=('xz' 'hidapi')
+   depends=('xz' 'hidapi' 'gtk3')

    cd "$pkgbase-$pkgver"
-   install -Dm755 target/release/system76-keyboard-configurator "$pkgdir"/usr/bin/system76-keyboard-configurator
-   install -Dm644 linux/com.system76.keyboardconfigurator.desktop "$pkgdir"/usr/share/applications/com.system76.keyboardconfigurator.desktop
-   install -Dm644 linux/com.system76.keyboardconfigurator.appdata.xml "$pkgdir"/usr/share/metainfo/com.system76.keyboardconfigurator.appdata.xml
-   install -Dm644 data/icons/scalable/apps/com.system76.keyboardconfigurator.svg "$pkgdir"/usr/share/icons/com.system76.keyboardconfigurator.svg
-   install -Dm644 debian/com.system76.pkexec.keyboardconfigurator.policy "$pkgdir"/usr/share/polkit-1/actions/com.system76.pkexec.keyboardconfigurator.policy
+   make prefix=/usr DESTDIR="$pkgdir/" install
 }
+