Add postinstall instructions

This commit is contained in:
Aditya Gupta 2021-06-10 19:57:59 +05:30
parent afa0a1a5c7
commit 09a3c65df1
No known key found for this signature in database
GPG Key ID: 89B4964FE1E819C6
4 changed files with 19 additions and 0 deletions

View File

@ -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

10
.install Normal file
View File

@ -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
}

View File

@ -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')

View File

@ -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