blob: 78b0b95f52d35434188611bff57e8378de4d9fba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Arthur Sonzogni <sonzogniarthur+ftxui at gmail dot com>
# Maintainer: Aditya Gupta <adityag.ug19.cs at nitp.ac.in>
pkgname=ftxui-git
pkgver=r413.7c3ca1b
pkgrel=1
pkgdesc="FTXUI is a C++ Functional Terminal User Interface library."
arch=("any")
url="https://github.com/ArthurSonzogni/FTXUI"
license=("MIT")
depends=()
makedepends=("git" "cmake")
provides=("ftxui")
conflicts=("ftxui")
install=".install"
source=("ftxui::git+https://github.com/ArthurSonzogni/FTXUI")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/ftxui"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/ftxui"
mkdir -p build && cd build
CXXFLAGS="$CFLAGS" cmake \
-DFTXUI_ENABLE_INSTALL=ON \
-DFTXUI_BUILD_EXAMPLES=OFF \
-DFTXUI_BUILD_TESTS=OFF \
-DFTXUI_BUILD_DOCS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
..
cmake --build .
}
package() {
cd "$srcdir/ftxui"
cd build
DESTDIR="$pkgdir/" cmake --install .
}
|