summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55694e214fbe8c3cf92c028700626425cdd97463 (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
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Onur Kader <onurorkunkader1999@gmail.com>

pkgname=scnlib
pkgver=2.0.0
pkgrel=1
pkgdesc="A formatted input library, think {fmt} but in the other direction. 'scanf' for modern C++"
arch=("x86_64")
url="https://github.com/eliaskosunen/scnlib"
license=("Apache-2.0")
makedepends=(
	git
	cmake
	#doxygen
	# TODO not packaged
	#python-poxy
)
source=("git+https://github.com/eliaskosunen/scnlib.git#tag=v${pkgver}")
md5sums=('SKIP')

build() {
	cmake -B build -S "$pkgname" \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
		-DBUILD_SHARED_LIBS=ON \

	cmake --build build --target all #scn_docs
}

check() {
	cmake --build build --target test
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}