sync
This commit is contained in:
parent
aec10b6e7d
commit
eac217b41a
11 changed files with 518 additions and 3 deletions
50
Linux/Arch Notes.md
Normal file
50
Linux/Arch Notes.md
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# pacman
|
||||
|
||||
| Commands | What it does |
|
||||
| :---------: | :----------------------------------: |
|
||||
| pacman -Syu | updates repos then upgrades packages |
|
||||
|
||||
| Commands | What it does |
|
||||
| :--------------: | :-----------------------------------: |
|
||||
| pkgfile filename | files what package provides that file |
|
||||
|
||||
# Building an AUR package
|
||||
|
||||
## makepkg
|
||||
|
||||
```bash
|
||||
makepkg -i system76-keyboard-configurator
|
||||
```
|
||||
|
||||
PKGBUILD file: [source](https://aur.archlinux.org/packages/system76-keyboard-configurator)
|
||||
```
|
||||
# Maintainer: Aaron Honeycutt <aaron at system76 dot com>
|
||||
pkgname=system76-keyboard-configurator
|
||||
pkgver=1.3.12
|
||||
pkgrel=1
|
||||
pkgdesc="Configures keymap and backlight of System76 keyboards."
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/pop-os/keyboard-configurator"
|
||||
license=('GPL3')
|
||||
depends=('gtk3' 'hidapi' 'xz')
|
||||
makedepends=('cargo' 'systemd')
|
||||
source=("keyboard-configurator-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
||||
sha256sums=('cc9af4537d9ff3284fa0dd7502d81dc237ae2683950a9b9ef8517b51581e2b66')
|
||||
|
||||
prepare() {
|
||||
cd "keyboard-configurator-$pkgver"
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
make vendor
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "keyboard-configurator-$pkgver"
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
make VENDOR=1 prefix=/usr
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "keyboard-configurator-$pkgver"
|
||||
make prefix=/usr DESTDIR="$pkgdir/" install
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue