Skip to content

Commit

Permalink
addpatch: openlibm, ver=0.8.3 (#144)
Browse files Browse the repository at this point in the history
See also [openlibm#308](JuliaMath/openlibm#308)

Co-Authored-By: Zhou Qiankang <[email protected]>
  • Loading branch information
000lbh and wszqkzqk authored Oct 10, 2024
1 parent 32c7ac7 commit 0212a5c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions openlibm/loong.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/PKGBUILD b/PKGBUILD
index 1b43b80..415ca84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,6 +17,7 @@ sha256sums=('f7c5ce8166b53ec31f6169ae9ae11d033ff0b05b9a05e53591b430a34bca9845')
prepare() {
cd $pkgname
sed -e 's|/usr/local|/usr|' -i Make.inc
+ patch -Np1 -d . -i ../308.patch
}

build() {
@@ -24,6 +25,9 @@ build() {
make prefix=/usr
}

+source+=(https://github.com/JuliaMath/openlibm/pull/308.patch)
+sha256sums+=('83bc92143076abf05e7894c0a4895f2cb7d4897744dc16cd7d671e44932701b5')
+
package() {
cd $pkgname
make DESTDIR="$pkgdir" install

0 comments on commit 0212a5c

Please sign in to comment.