summaryrefslogtreecommitdiff
path: root/templates/cmake.xibuild
blob: 1591035dabb53befe77586a85cd2efe3a5b42bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
build () {
    cmake -B build -G Ninja \
        -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DBUILD_SHARED_LIBS=True \
        -DBUILD_STATIC_LIBS=OFF
	cmake --build build
}

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