From 3cbf9cf23fcb824051ce1c73b419bb6183b73f2b Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sat, 30 May 2020 18:15:39 +0200 Subject: [PATCH] Configure installation --- README.md | 11 +++++++++-- meson.build | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b6ec507..6e1100d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,20 @@ -# PinePhone Toolkit +# PinePhone Toolkit (PPTK) A collection of tools and utility apps for the PINE64 PinePhone. ## Components ### backlight Get / Set backlight brightness. -## Building +``` +$ pptk-backlight get +4 +$ pptk-backlight set 6 +``` + +## Build & Install ``` $ meson build $ cd build $ ninja +$ sudo ninja install ``` diff --git a/meson.build b/meson.build index 4b2ca4a..99590e2 100644 --- a/meson.build +++ b/meson.build @@ -1,2 +1,3 @@ project('PinePhone Toolkit', 'c') -executable('pptk-backlight', ['src/backlight.c']) +executable('pptk-backlight', ['src/backlight.c'], + install: true, install_mode: ['rwsr-xr-x', 0, 0])