blob: 00a3c2d269a01aab795e47fcad985659e71fa315 (
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
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_pkgname=dlib
pkgname=python-${_pkgname}-cuda-git
pkgver=20.0.r36.ga41c2e6
pkgrel=1
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques. -- git CUDA version"
arch=('x86_64')
url="http://www.dlib.net/"
license=('BSL-1.0')
depends=('cblas' 'giflib' 'lapack' 'libjpeg-turbo' 'libpng' 'python' 'cuda' 'cudnn' 'ffmpeg')
makedepends=('git' 'boost' 'python-setuptools' 'sqlite' 'ccache-ext' 'python-build' 'python-installer' 'python-wheel' 'python-cmake')
optdepends=('sqlite')
provides=('python-dlib' 'python-dlib-cuda')
options=(!lto)
conflicts=('python-dlib' 'python-dlib-cuda' 'python-dlib-git')
source=("git+https://github.com/davisking/dlib.git")
b2sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build(){
cd "${_pkgname}"
DLIB_USE_CUDA=ON python -m build --wheel --no-isolation
}
package(){
cd "${_pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|