blob: 0013a3c572ba953d30d5a6111635cd58615679be (
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
|
# Maintainer: Pete Dietl <petedietl@gmail.com>
pkgname=libfort
pkgver=0.1.5
pkgrel=0
pkgdesc="A simple crossplatform library to create formatted text tables."
url="https://github.com/seleznevae/libfort"
arch="all"
license="MIT"
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/seleznevae/libfort/tar.gz/v$pkgver"
build() {
mkdir build && cd build
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS}
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
sha512sums="5dbdc9b61ba9f85fc923f74885be80ac166565c302805ef02ba859ae7614cb113209aa1798b3b27c07e81f99cceb27fcc40abf34a3b4bea2be22cd2a31590cf5 libfort-0.1.5.tar.gz"
|