diff options
author | Martin T. H. Sandsmark | 2018-09-29 14:59:38 +0200 |
---|---|---|
committer | Martin T. H. Sandsmark | 2018-09-29 15:09:04 +0200 |
commit | e1d485f46b8c89ff1e3d36c871356a2ddfb9effb (patch) | |
tree | fbc1e19fe2a839e8e09048a4b36de1de4a5a7ff8 | |
download | aur-e1d485f46b8c89ff1e3d36c871356a2ddfb9effb.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e1df38741097 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = dlib-git + pkgdesc = General purpose C++ library using contract programming and modern C++ techniques + pkgver = r7572.0072afbc + pkgrel = 1 + url = http://www.dlib.net/ + arch = i686 + arch = x86_64 + license = Boost Software License + depends = glibc + optdepends = cblas: for BLAS support + optdepends = cuda: for CUDA support + optdepends = giflib: for GIF support + optdepends = lapack: for LAPACK support + optdepends = libjpeg-turbo: for JPEG support + optdepends = libpng: for PNG support + optdepends = sqlite: for sqlite support + provides = dlib + conflicts = dlib + replaces = dlib + source = git+https://github.com/davisking/dlib + sha256sums = SKIP + +pkgname = dlib-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b5035200698d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org> + +pkgname=dlib-git +_pkgname=dlib +pkgrel=1 +pkgver=r7572.0072afbc +pkgdesc="General purpose C++ library using contract programming and modern C++ techniques" +arch=('i686' 'x86_64') +url="http://www.dlib.net/" +license=('Boost Software License') +depends=('glibc') +optdepends=('cblas: for BLAS support' + 'cuda: for CUDA support' + 'giflib: for GIF support' + 'lapack: for LAPACK support' + 'libjpeg-turbo: for JPEG support' + 'libpng: for PNG support' + 'sqlite: for sqlite support') +source=('git+https://github.com/davisking/dlib') +sha256sums=(SKIP) +provides=('dlib') +conflicts=('dlib') +replaces=('dlib') + +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${_pkgname}" + mkdir -p build + cd build + export CMAKE_PREFIX_PATH=/opt/cuda/ + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCUDA_SDK_ROOT_DIR=/opt/cuda/ -DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda/ -DCUDA_HOST_COMPILER=/usr/bin/gcc-7 -DCMAKE_INSTALL_LIBDIR=/usr/lib/ +} + +package() { + cd "${srcdir}/${_pkgname}/build" + + make DESTDIR="${pkgdir}" install +} |