Commit a931ebbb authored by Jakub Jirutka's avatar Jakub Jirutka
Browse files

testing/openblas: fix installed OpenBLASConfig.cmake and cleanup docs

OpenBLASConfig.cmake included path of the $builddir
parent 6bf2cb9c
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment