apkbuilds @ 8ceab0a8599974c3ed0e875354bd3c95a8c845cb

 1# Contributor: Davis E. King <davis@dlib.net>
 2# Maintainer: Adriaan Groenenboom <agboom@pm.me>
 3pkgname=dlib
 4pkgver=19.24
 5pkgrel=1
 6pkgdesc="A toolkit for making real world machine learning and data analysis applications in C++"
 7url="http://dlib.net"
 8arch="x86_64"
 9license="BSL-1.0"
10makedepends="
11	cmake
12	libjpeg-turbo-dev
13	libpng-dev
14	libx11-dev
15	openblas-dev
16	samurai
17	"
18subpackages="$pkgname-dev"
19source="dlib-$pkgver.tar.bz2::https://downloads.sourceforge.net/project/dclib/dlib/v$pkgver/dlib-$pkgver.tar.bz2"
20
21build() {
22	cmake -B build -G Ninja \
23	  -DCMAKE_INSTALL_PREFIX=/usr \
24	  -DBUILD_SHARED_LIBS=ON \
25	  -DCMAKE_BUILD_TYPE=None
26	cmake --build build
27}
28
29package() {
30	DESTDIR=$pkgdir cmake --install build
31}
32
33sha512sums="
34c12c166d7c59ea632d02d8fb6d3e0b1d42212ed1f856ec015408868308374f5f1ac75abfa916dd94862269543b91bc2b4c75fd3078c14063309808a15a14d2fe  dlib-19.24.tar.bz2
35"