summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Semkin2018-06-07 07:45:25 +0300
committerIvan Semkin2018-06-07 07:45:25 +0300
commit53848b52e0c114439e7dca0e1f2ba860bf34ad7a (patch)
tree7027746a5c11d9214c751fe412a2c28b6c0e056b
parentf5219b998c796512b9c071e05b743ab39dc40cb2 (diff)
downloadaur-53848b52e0c114439e7dca0e1f2ba860bf34ad7a.tar.gz
Install from source instead of using an RPM package
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD19
2 files changed, 14 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 28be77e98e3..a34e6248888 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,13 +3,13 @@ pkgbase = nvidia-docker
pkgver = 2.0.3
pkgrel = 2
url = https://github.com/NVIDIA/nvidia-docker
- arch = x86_64
- license = custom
+ arch = any
+ license = BSD
depends = docker
depends = nvidia-container-runtime
depends = nvidia-container-runtime-hook
- source = https://github.com/NVIDIA/nvidia-docker/blob/gh-pages/centos7/x86_64/nvidia-docker2-2.0.3-1.docker18.03.1.ce.noarch.rpm?raw=true
- sha256sums = e07186b8e503ab4a170631714226cb6fc9992534f3ddcb226f7d9a186e832633
+ source = https://github.com/NVIDIA/nvidia-docker/archive/v2.0.3.tar.gz
+ sha256sums = f94c963b6d2a537711c7e8e9e3c3fe3d9f9fddc48599d5a411119276a33763db
pkgname = nvidia-docker
diff --git a/PKGBUILD b/PKGBUILD
index 2d91122c54b..c26b4f1a108 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,19 +4,20 @@ pkgname=nvidia-docker
pkgver=2.0.3
pkgrel=2
pkgdesc='Build and run Docker containers leveraging NVIDIA GPUs'
-arch=(x86_64)
url='https://github.com/NVIDIA/nvidia-docker'
-license=(custom)
+arch=(any)
+license=(BSD)
depends=(docker nvidia-container-runtime nvidia-container-runtime-hook)
+source=("https://github.com/NVIDIA/nvidia-docker/archive/v$pkgver.tar.gz")
+sha256sums=('f94c963b6d2a537711c7e8e9e3c3fe3d9f9fddc48599d5a411119276a33763db')
-source=("https://github.com/NVIDIA/nvidia-docker/blob/gh-pages/centos7/x86_64/nvidia-docker2-$pkgver-1.docker18.03.1.ce.noarch.rpm?raw=true")
-sha256sums=('e07186b8e503ab4a170631714226cb6fc9992534f3ddcb226f7d9a186e832633')
+package() {
+ cd "${pkgname}-${pkgver}"
-package() {
- install -d "${pkgdir}/usr/bin"
- install -d "${pkgdir}/etc/docker"
+ install -d ${pkgdir}/usr/bin
+ install -m700 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
- install -m755 "${srcdir}/usr/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
- install -m644 "${srcdir}/etc/docker/daemon.json" "${pkgdir}/etc/docker/daemon.json"
+ install -d ${pkgdir}/etc/docker
+ install -m644 daemon.json ${pkgdir}/etc/docker/daemon.json
}
# vim:set ts=2 sw=2 et: