blob: aec7d0e70a28e64c67cd9cabed17955de5ffc0ec (
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
36
37
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_pkgname=dlib
pkgname=python-${_pkgname}-cuda-git
pkgver=19.24.6.r4.gfafdac3
pkgrel=2
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' 'cmake' 'python-setuptools' 'sqlite' 'ccache-ext' 'gcc13' 'gcc13-libs')
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")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build(){
cd "${_pkgname}"
python setup.py build \
--set CUDA_HOST_COMPILER=/usr/bin/gcc-13 \
--set CUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache \
--set CMAKE_C_COMPILER=/usr/bin/gcc-13 \
--set CMAKE_CXX_COMPILER=/usr/bin/g++-13
}
package(){
cd "${_pkgname}"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
|