summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpingplug2018-05-04 16:40:29 +0800
committerpingplug2018-05-04 16:40:29 +0800
commit40b8f5c788d15ba42d7d1c44d88605bff384942c (patch)
tree87756f713c1afa2a2723817b9a9b8fe9f3447074
parent426ca364f21529f16e4f28d2ece00c5e0e4d8050 (diff)
downloadaur-40b8f5c788d15ba42d7d1c44d88605bff384942c.tar.gz
use gcc5 as cuda package does
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD49
2 files changed, 30 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bb814775680..a0a8482c7dd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,10 @@
pkgbase = dlib
- pkgdesc = Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques.
+ pkgdesc = A general purpose cross-platform C++ library designed using contract programming and modern C++ techniques
pkgver = 19.10
- pkgrel = 1
- url = http://www.dlib.net/
+ pkgrel = 2
+ url = http://www.dlib.net
arch = x86_64
- license = Boost Software License
+ license = custom
makedepends = cmake
optdepends = blas: for BLAS support
optdepends = cuda: for CUDA support
@@ -16,7 +16,7 @@ pkgbase = dlib
optdepends = neon: for neon support
optdepends = sqlite: for sqlite support
source = https://downloads.sourceforge.net/project/dclib/dlib/v19.10/dlib-19.10.tar.bz2
- sha512sums = 04b1513f09bf43677ad5b59d76fe7aa9cd96c6d7d1aac2fb0f431a555ccc670996a30660a8bf50eea082842f623b68f1ac019058b351750c0d86f8f0b355891b
+ sha256sums = a0470f978125eea13076aa9557bf0e4990a030ad8de972225dba46b45b3b3bd1
pkgname = dlib
diff --git a/PKGBUILD b/PKGBUILD
index c91966fe069..0af1ad8da13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,12 @@
# Contributor: perlawk
pkgname=dlib
-_pkgname=dlib
pkgver=19.10
-pkgrel=1
-pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
+pkgrel=2
+pkgdesc="A general purpose cross-platform C++ library designed using contract programming and modern C++ techniques"
arch=('x86_64')
-url="http://www.dlib.net/"
-license=('Boost Software License')
-makedepends=('cmake')
+url="http://www.dlib.net"
+license=('custom')
optdepends=('blas: for BLAS support'
'cuda: for CUDA support'
'cudnn: for CUDNN support'
@@ -19,27 +17,30 @@ optdepends=('blas: for BLAS support'
'libpng: for PNG support'
'neon: for neon support'
'sqlite: for sqlite support')
-source=(https://downloads.sourceforge.net/project/dclib/${_pkgname}/v${pkgver}/${_pkgname}-${pkgver}.tar.bz2)
-sha512sums=('04b1513f09bf43677ad5b59d76fe7aa9cd96c6d7d1aac2fb0f431a555ccc670996a30660a8bf50eea082842f623b68f1ac019058b351750c0d86f8f0b355891b')
+makedepends=('cmake')
+source=("https://downloads.sourceforge.net/project/dclib/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
+sha256sums=('a0470f978125eea13076aa9557bf0e4990a030ad8de972225dba46b45b3b3bd1')
build() {
- cd "${srcdir}"
- mkdir -p build && cd build
- cmake \
- -DCMAKE_INSTALL_PREFIX:PATH=/usr \
- -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
- -DBUILD_SHARED_LIBS:BOOL=ON \
- -DUSE_AVX_INSTRUCTIONS:BOOL=ON \
- -DUSE_SSE2_INSTRUCTIONS:BOOL=ON \
- -DUSE_SSE4_INSTRUCTIONS:BOOL=ON \
- -DCUDA_HOST_COMPILER='/usr/bin/cc-6' \
- -DCMAKE_BUILD_TYPE=Release \
- "../${_pkgname}-${pkgver}"
- make
+ cd "${srcdir}"
+ mkdir -p build && cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DUSE_AVX_INSTRUCTIONS:BOOL=ON \
+ -DUSE_SSE2_INSTRUCTIONS:BOOL=ON \
+ -DUSE_SSE4_INSTRUCTIONS:BOOL=ON \
+ -DCUDA_HOST_COMPILER='/usr/bin/gcc-5' \
+ -DCMAKE_BUILD_TYPE=Release \
+ "../${pkgname}-${pkgver}"
+ make
}
package() {
- cd "${srcdir}/build"
- make DESTDIR=${pkgdir} install
- install -Dm644 "../${_pkgname}-${pkgver}/dlib/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "${srcdir}/build"
+ make DESTDIR=${pkgdir} install
+ install -Dm644 "../${pkgname}-${pkgver}/dlib/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
+
+# vim:set ts=2 sw=2 et: