summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bf8d0261d81..5ab34e17c37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ license=('MPL2')
groups=()
conflicts=()
provides=()
-makedepends=('boost' 'cmake' 'git')
+makedepends=('boost' 'cmake' 'git' 'expac')
makedepends+=('cuda>=7.0')
checkdepends=('wget')
source=("${_name}::git+https://github.com/alicevision/popsift.git")
@@ -51,7 +51,9 @@ build() {
package_popsift() {
pkgdesc+=" [development headers and static libs]"
- depends=('boost' "popsift-libs=${pkgver}")
+ _cuda_version=$(expac -Q '%v' cuda)
+ _cuda_version=${_cuda_version%-[0-9]*}
+ depends=('boost' "popsift-libs=${pkgver}" "cuda${_cuda_version:+=$_cuda_version}")
optdepend=('cuda: for static cudart library')
options=('staticlibs')
make -C "$srcdir/build_static" DESTDIR="${pkgdir}" install