diff options
author | bilabila | 2019-04-14 15:28:33 +0800 |
---|---|---|
committer | bilabila | 2019-04-14 15:28:33 +0800 |
commit | 596029d12b0412e3b226acf8d3864fb426400434 (patch) | |
tree | 5d0aa305bf6d74c2eecc0dc05ef04e21caabab74 | |
parent | 05ee6b8a96503343eeb1caefebe56aaa02fab809 (diff) | |
download | aur-596029d12b0412e3b226acf8d3864fb426400434.tar.gz |
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | matconvnet-cudnn.install | 6 |
2 files changed, 16 insertions, 14 deletions
@@ -4,11 +4,12 @@ _pkgver=1.0-beta25 _patch=R2019a.patch pkgname=$_pkgname-cudnn pkgver=1.0.25 -pkgrel=3 +pkgrel=4 pkgdesc='matconvnet compile with cuda and cudnn' arch=(x86_64) url=http://www.vlfeat.org/matconvnet/ -provides=(matconvnet) +provides=($_pkgname) +conflicts=($_pkgname) license=(custom) depends=(cudnn gcc) makedepends=(make) @@ -16,6 +17,7 @@ source=(http://www.vlfeat.org/matconvnet/download/$_pkgname-$_pkgver.tar.gz $_patch) sha512sums=(0ac36308067598ac62a1f0ec529fa5ba7758bb8b3588a88e12de70d1e62c50059e573b2e5936864527a1a1a815299feaf0c95cdc3ef3ec8160aa4bfdbbf534f5 44709595bcfb607f229725510d08e1975c9ff62eab822085e4f3d2af05d96823abcc7567e810ad6225143fa02331885e706d72911303dc7eaabbfe1ad9b1b939) +install=$pkgname.install prepare(){ cd $_pkgname-$_pkgver patch -Nlp1 -i ../$_patch @@ -41,16 +43,10 @@ build() { make ENABLE_GPU=yes CUDAROOT=/opt/cuda MATLABROOT="$d" cudaMethod=nvcc ENABLE_CUDNN=yes CUDNNROOT=/usr } package() { - d=$pkgdir/usr/share - install -Dm644 $_pkgname-$_pkgver/COPYING $d/licenses/$_pkgname/LICENSE - d=$d/$_pkgname - mkdir $d - cp -rT $_pkgname-$_pkgver $d - find $d -type d -exec chmod 755 {} + - find $d -type f -exec chmod 644 {} + - echo -e "\n%open matlab, type -run /usr/share/matconvnet/matlab/vl_setupnn -vl_testnn('gpu', true) -%24 tests create dir in root, should fail -\n" + d="$pkgdir"/usr/share + install -Dm644 $_pkgname-$_pkgver/COPYING "$d"/licenses/$_pkgname/LICENSE + d="$d"/$_pkgname + cp -rT $_pkgname-$_pkgver "$d" + find "$d" -type d -exec chmod 755 {} + + find "$d" -type f -exec chmod 644 {} + } diff --git a/matconvnet-cudnn.install b/matconvnet-cudnn.install new file mode 100644 index 000000000000..715838a91893 --- /dev/null +++ b/matconvnet-cudnn.install @@ -0,0 +1,6 @@ +post_install() { + echo -e "\n%open matlab, type +run /usr/share/matconvnet/matlab/vl_setupnn +vl_testnn('gpu', true) +%24 tests create dir in root, should fail\n" +} |