summaryrefslogtreecommitdiff
path: root/repo/zxing-cpp/zxing-cpp.xibuild
blob: 82e3d613bafcb4f4f99a126fab5031c520b51e4c (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
#!/bin/sh

NAME="zxing-cpp"
DESC="C++ port of ZXing"

MAKEDEPS="cmake"

PKG_VER=1.4.0
SOURCE="https://github.com/nu-book/zxing-cpp/archive/v$PKG_VER/zxing-cpp-v$PKG_VER.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
    cd $BUILD_ROOT
}

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