summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Velykoivanenko2018-05-28 10:56:07 +0200
committerLev Velykoivanenko2018-05-28 10:56:07 +0200
commit83b261c9571fac53888ef45507b4fec62996fc1e (patch)
treecc6005201dcea2b1bf501a4dc5e7622532c40f01
parent90db7ad32df5b806e3cdfd08ba2028e9533bccc2 (diff)
downloadaur-83b261c9571fac53888ef45507b4fec62996fc1e.tar.gz
Update package to dlib v19.13
Replace 'which' with 'command -v' for better POSIX conformity.
-rwxr-xr-x.SRCINFO6
-rwxr-xr-xPKGBUILD13
2 files changed, 10 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fafd3dd5f80..a07850eea56 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-dlib-cuda
pkgdesc = Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques.
- pkgver = 19.11
+ pkgver = 19.13
pkgrel = 1
url = http://www.dlib.net/
arch = x86_64
@@ -22,8 +22,8 @@ pkgbase = python-dlib-cuda
optdepends = libpng: for PNG support
optdepends = neon: for neon support
optdepends = sqlite: for sqlite support
- source = http://dlib.net/files/dlib-19.11.tar.bz2
- md5sums = 6503152f4181edec67a68c1532e7b678
+ source = http://dlib.net/files/dlib-19.13.tar.bz2
+ md5sums = 69d806dea72789f1c0f43843f4007776
pkgname = python-dlib-cuda
depends = python
diff --git a/PKGBUILD b/PKGBUILD
index 10c4d54d9d5..61e61b735d7 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
pkgname=('python-dlib-cuda' 'python2-dlib-cuda')
_pkgname='dlib'
-pkgver=19.11
+pkgver=19.13
pkgrel=1
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
arch=('x86_64')
@@ -24,7 +24,7 @@ optdepends=('cblas: for BLAS support'
'neon: for neon support'
'sqlite: for sqlite support')
source=("http://dlib.net/files/${_pkgname}-${pkgver}.tar.bz2")
-md5sums=('6503152f4181edec67a68c1532e7b678')
+md5sums=('69d806dea72789f1c0f43843f4007776')
# Detecting whether certain cpu optimisations can be made
_avx_available=()
@@ -47,12 +47,12 @@ build() {
# Exporting compiler environment variables
# This is necessary to get cuda support
- export CC=$(which gcc-6)
- export CXX=$(which g++-6)
-
+ export CC=$(command -v gcc-6)
+ export CXX=$(command -v g++-6)
+
# Compiling for Python 3
python setup.py build "${_avx_available[@]}" "${_sse2_available[@]}" "${_sse4_available[@]}"
-
+
# Compiling for Python 2
python2 setup.py build "${_avx_available[@]}" "${_sse2_available[@]}" "${_sse4_available[@]}"
}
@@ -66,6 +66,7 @@ package_python-dlib-cuda() {
package_python2-dlib-cuda() {
depends=('python2' 'cuda' 'cudnn' 'libx11')
+
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
}