Initial PKGBUILD; Builds Successfully
This commit is contained in:
commit
afa0a1a5c7
17
.SRCINFO
Normal file
17
.SRCINFO
Normal file
@ -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
|
||||
22
.gitignore
vendored
Normal file
22
.gitignore
vendored
Normal file
@ -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
|
||||
44
PKGBUILD
Normal file
44
PKGBUILD
Normal file
@ -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 .
|
||||
}
|
||||
7
README.md
Normal file
7
README.md
Normal file
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user