diff options
author | Aditya Gupta | 2021-06-10 19:28:34 +0530 |
---|---|---|
committer | Aditya Gupta | 2021-06-10 19:28:34 +0530 |
commit | afa0a1a5c723132870a6e9c4b40983d9c6b595c0 (patch) | |
tree | e151bafca6aada4346a52c3087bf0d8bbc453834 | |
download | aur-afa0a1a5c723132870a6e9c4b40983d9c6b595c0.tar.gz |
Initial PKGBUILD; Builds Successfully
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 22 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | README.md | 7 |
4 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a7ee7baa765 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = ftxui-git + pkgdesc = C++ Functional Terminal User Interface + pkgver = r277.4d29dcc + pkgrel = 1 + url = https://github.com/ArthurSonzogni/FTXUI + arch = x86_64 + license = MIT + makedepends = git + depends = cmake + depends = gcc + depends = ninja + provides = ftxui + conflicts = ftxui + source = ftxui::git+https://github.com/ArthurSonzogni/FTXUI + md5sums = SKIP + +pkgname = ftxui-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..be93ab98a976 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/archlinuxpackages +# Edit at https://www.toptal.com/developers/gitignore?templates=archlinuxpackages + +### ArchLinuxPackages ### +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ + +# End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages + +ftxui diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e1622bba5319 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Arthur Sonzogni <i_dont_know_his_mail> +pkgname=ftxui-git +pkgver=r277.4d29dcc +pkgrel=1 +pkgdesc="C++ Functional Terminal User Interface" +arch=('x86_64') +url="https://github.com/ArthurSonzogni/FTXUI" +license=('MIT') +depends=('cmake' 'gcc' 'ninja') # ninja is optional, just remove "-G Ninja" from build() too, though its faster if you leave as it is +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+https://github.com/ArthurSonzogni/FTXUI") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}" + mkdir -p build && cd build + cmake -G Ninja \ + -DFTXUI_BUILD_EXAMPLES=OFF \ + -DFTXUI_ENABLE_INSTALL=ON \ + -DFTXUI_BUILD_TESTS=OFF \ + -DFTXUI_BUILD_DOCS=ON \ + .. -DCMAKE_BUILD_TYPE=Release + + cmake --build . +} + +check() { + cd "$srcdir/${pkgname%-git}"/build + # Left for now, ask Arthur later +} + +package() { + cd "$srcdir/${pkgname%-git}" + cd build + DESTDIR="$pkgdir/" cmake --install . +} diff --git a/README.md b/README.md new file mode 100644 index 000000000000..713cdde84111 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +## THIS IS NOT THE OFFICIAL PKGBUILD + +PKGBUILD for use on Arch by makepkg. +Built for simple install and updation of [ftxui](https://github.com/ArthurSonzogni/FTXUI) library. + +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. + |