From 56ab7d5b891fb93ad10ffb65df8c7e4a208daa56 Mon Sep 17 00:00:00 2001 From: DRAGONTOS Date: Sun, 28 Jul 2024 12:28:59 +0200 Subject: [PATCH] pkgbuild: added an pkgbuild for arch! --- PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ README.md | 19 ++++++++++++------- props.json | 2 +- 3 files changed, 49 insertions(+), 8 deletions(-) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f9670ae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: WorMzy Tykashi +# Contributor: Dmitry Korzhevin +# Contributor: C.Coutinho +# Contributor: Grigorios Bouzakis +# Contributor: TDY + +pkgname=RapidMenu-git +_gitname=RapidMenu +pkgver=0.2.3 +pkgrel=1 +pkgdesc="A terminal multiplexer" +url="https://github.com/tmux/tmux/wiki" +arch=('x86_64') +license=('GPLv3') +depends=('tomlplusplus' 'cpptoml') +makedepends=('git' 'cmake' 'ninja') +provides=('RapidMenu') +conflicts=('RapidMenu') +source=('git+https://github.com/DRAGONTOS/RapidMenu.git') +md5sums=('SKIP') + +prepare() { + rm -rf build +} + +build() { + cd ${_gitname} + cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -S . -B ./build -G Ninja + cmake --build ./build + chmod -R 777 ./build +} + +package() { + cd ${_gitname} + sudo make install +} diff --git a/README.md b/README.md index e4eb7ae..415ece7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ cpack -G deb sudo dpkg -i *.deb ``` +Using PKGBUILD: +``` +makepkg -si PKGBUILD +``` + # Usage ## Help message @@ -67,16 +72,16 @@ It is required to have the [runner] section in the configuration. Example: ``` [runner] -rname = "Dashboard:" #(name if needed) -rtheme = "-show-icons -theme ~/.config/rofi/themes/rounded-purple-dark.rasi" #(theme if needed) -rcommand = "rofi -dmenu -p" #(dmenu, rofi, bemenu etc) +rname = "Dashboard:" #name if needed +rtheme = "-show-icons -theme ~/.config/rofi/themes/rounded-purple-dark.rasi" #theme if needed +rcommand = "rofi -dmenu -p" #dmenu, rofi, bemenu etc ``` An example of something to add to the configuration. ``` -[Disk] #(To set the name) -names = "Disk" #(To set the name in the runner) -description = "You chose Disk." #(Not required but can be set) -command = "kitty -e /home/$USER/.config/RapidMenu/hdd.bash" #(bash command) +[Disk] #To set the name +names = "Disk" #To set the name in the runner +description = "You chose Disk." #Not required but can be set +command = "kitty -e /home/$USER/.config/RapidMenu/hdd.bash" #bash command ``` # Contributors diff --git a/props.json b/props.json index c284c02..ee0ad0b 100644 --- a/props.json +++ b/props.json @@ -1,3 +1,3 @@ { - "version": "0.2.1" + "version": "0.2.3" }