summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Gradzki2017-11-17 08:12:37 -0600
committerAdam Gradzki2017-11-17 08:12:37 -0600
commitcc8ed23b3c126b8d356a1623abad0cc56a82746d (patch)
tree9af4fe53fdec2d3ea0b56599eab089d628388cef
downloadaur-cc8ed23b3c126b8d356a1623abad0cc56a82746d.tar.gz
init
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD46
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..18e4170bed0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = python-dlib-cuda
+ pkgdesc = Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques.
+ pkgver = 19.7
+ pkgrel = 1
+ url = http://www.dlib.net/
+ arch = any
+ license = Boost Software License
+ makedepends = cmake
+ makedepends = boost,
+ makedepends = cuda,
+ makedepends = gcc-6,
+ makedepends = python,
+ makedepends = python2
+ optdepends = cblas: for BLAS support
+ optdepends = lapack: for LAPACK support
+ optdepends = libjpeg-turbo: for JPEG support
+ optdepends = libpng: for PNG support
+ optdepends = sqlite: for sqlite support
+ source = http://dlib.net/files/dlib-19.7.tar.bz2
+
+pkgname = python-dlib-cuda
+ depends = python
+
+pkgname = python2-dlib-cuda
+ depends = python2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6aeb6c8bd11
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Adam Gradzki <adam at mm dot st>
+# Contributor: Flávio Zavan <flavio dot zavan at gmail dot com>
+# Contributor: pingplug
+# Contributor: perlawk
+# Contributor: xsmile
+
+pkgname=('python-dlib-cuda' 'python2-dlib-cuda')
+pkgver=19.7
+pkgrel=1
+pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
+arch=('any')
+url="http://www.dlib.net/"
+license=('Boost Software License')
+makedepends=('cmake' 'boost', 'cuda', 'gcc-6', 'python', 'python2')
+optdepends=('cblas: for BLAS support'
+ 'lapack: for LAPACK support'
+ 'libjpeg-turbo: for JPEG support'
+ 'libpng: for PNG support'
+ 'sqlite: for sqlite support')
+source=('http://dlib.net/files/dlib-19.7.tar.bz2')
+md5=('119c17eda1075f6cfb3f8cd21f11f53b')
+
+avx_available=''
+if grep -q avx /proc/cpuinfo; then
+ avx_available='--yes USE_AVX_INSTRUCTIONS'
+fi
+
+build(){
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build $avx_available
+ CUDNN_INCLUDE_DIR="/opt/cuda/include" CUDNN_LIBRARY_DIR="/opt/cuda/lib64" CC=`which gcc-6` CXX=`which g++-6` python2 setup.py build $avx_available
+}
+
+package_python-dlib-cuda(){
+ depends=('python')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ CUDNN_INCLUDE_DIR="/opt/cuda/include" CUDNN_LIBRARY_DIR="/opt/cuda/lib64" CC=`which gcc-6` CXX=`which g++-6` python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
+package_python2-dlib-cuda(){
+ depends=('python2')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ CUDNN_INCLUDE_DIR="/opt/cuda/include" CUDNN_LIBRARY_DIR="/opt/cuda/lib64" CC=`which gcc-6` CXX=`which g++-6` python2 setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
+}