From 09a3c65df13fe4cb7a2320f86b2100b936d721d4 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Thu, 10 Jun 2021 19:57:59 +0530 Subject: [PATCH] Add postinstall instructions --- .SRCINFO | 1 + .install | 10 ++++++++++ PKGBUILD | 1 + README.md | 7 +++++++ 4 files changed, 19 insertions(+) create mode 100644 .install diff --git a/.SRCINFO b/.SRCINFO index 7a7ee7b..13e2d8f 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -3,6 +3,7 @@ pkgbase = ftxui-git pkgver = r277.4d29dcc pkgrel = 1 url = https://github.com/ArthurSonzogni/FTXUI + install = .install arch = x86_64 license = MIT makedepends = git diff --git a/.install b/.install new file mode 100644 index 0000000..b99794f --- /dev/null +++ b/.install @@ -0,0 +1,10 @@ +post_install() { + echo "-------------------------->" + echo "The headers have been installed to '/usr/local/include/ftxui' and libraries to /usr/local/lib/ftxui, namely 'libcomponent.a', 'libdom.a', 'libscreen.a'" + echo "Don't Forget to link with the libraries :D" + echo "<--------------------------" +} + +post_upgrade() { + post_install +} diff --git a/PKGBUILD b/PKGBUILD index e1622bb..49fe270 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,6 +10,7 @@ depends=('cmake' 'gcc' 'ninja') # ninja is optional, just remove "-G Ninja" from makedepends=('git') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") +install='.install' source=("${pkgname%-git}::git+https://github.com/ArthurSonzogni/FTXUI") md5sums=('SKIP') diff --git a/README.md b/README.md index 713cdde..ac3b578 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,10 @@ Built for simple install and updation of [ftxui](https://github.com/ArthurSonzog Just run makepkg in the directory, or see github.com/adig-pkgs/adig-pkgs how to add the custom repo to have it listed by your pacman. +### Post Install + +The headers are installed to `/usr/local/include/ftxui` and libraries to /usr/local/lib/ftxui, namely `libcomponent.a`, `libdom.a`, `libscreen.a`. + +You will get this message from makepkg too, don't forget to link to these libraries as required :D + +