aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dlib/APKBUILD
blob: 176a5750ad1fb236d836bc0b9ffa05fefb366e05 (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
# Contributor: Davis E. King <davis@dlib.net>
# Maintainer: Adriaan Groenenboom <agboom@pm.me>
pkgname=dlib
pkgver=19.24.2
pkgrel=0
pkgdesc="A toolkit for making real world machine learning and data analysis applications in C++"
url="http://dlib.net"
arch="all"
license="BSL-1.0"
makedepends="
	cmake
	libjpeg-turbo-dev
	libpng-dev
	libx11-dev
	openblas-dev
	samurai
	"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/davisking/dlib/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
	  -DCMAKE_INSTALL_PREFIX=/usr \
	  -DBUILD_SHARED_LIBS=ON \
	  -DCMAKE_BUILD_TYPE=None
	cmake --build build
}

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

sha512sums="
a38a3079c169b16d81d7aca9fc294bcd63bd2dc1a21573f9141ca310542da3629b6523fa6f348be8b41bf5b478c0846a13a4c3fee77f1ac38dfbfc4a01effb57  dlib-19.24.2.tar.gz
"