diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-09 01:15:15 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-09 13:09:35 +0200 |
commit | a931ebbb79a13c4de49af07c85b3efca043e50b7 (patch) | |
tree | cf0d6470032dbbcce2818333f9d9d7b76d5ecb04 /testing | |
parent | 6bf2cb9c3815f703bdbc5ceb335a1babca7acdb7 (diff) | |
download | aports-a931ebbb79a13c4de49af07c85b3efca043e50b7.tar.bz2 aports-a931ebbb79a13c4de49af07c85b3efca043e50b7.tar.xz |
testing/openblas: fix installed OpenBLASConfig.cmake and cleanup docs
OpenBLASConfig.cmake included path of the $builddir
Diffstat (limited to 'testing')
-rw-r--r-- | testing/openblas/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/testing/openblas/APKBUILD b/testing/openblas/APKBUILD index 1a314c7c4e..6b10b00544 100644 --- a/testing/openblas/APKBUILD +++ b/testing/openblas/APKBUILD @@ -3,7 +3,7 @@ pkgname=openblas _pkgname=OpenBLAS pkgver=0.2.18 -pkgrel=0 +pkgrel=1 pkgdesc="A fast BSD-licensed BLAS based on gotoBLAS2, with LAPACK" url="http://www.openblas.net" arch="all" @@ -43,14 +43,17 @@ build() { package() { cd "$builddir" - mkdir -pm 0755 "$pkgdir/usr/lib" "$pkgdir/usr/include" \ - "$pkgdir/usr/share/doc/$pkgname" || return 1 - make $_flags PREFIX="$pkgdir/usr" install || return 1 - local file; for file in *.txt *.md LICENSE; do - install -m 0644 $file "$pkgdir/usr/share/doc/$pkgname" || return 1 - done + # Remove reference to $pkgdir. + sed -i "s|$pkgdir||" "$pkgdir"/usr/lib/cmake/$pkgname/OpenBLASConfig.cmake + + mkdir -p "$pkgdir"/usr/share/doc/$pkgname + install -m 0644 Changelog.txt TargetList.txt USAGE.md \ + "$pkgdir"/usr/share/doc/$pkgname/ || return 1 + + install -Dm 0644 LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="805e7f660877d588ea7e3792cda2ee65 openblas-0.2.18.tar.gz |