Skip to content

Commit

Permalink
addpatch: libcaca
Browse files Browse the repository at this point in the history
Fix instruction detection.
The patch is upstreamed as cacalabs/libcaca#76.
  • Loading branch information
kxxt authored and felixonmars committed Jun 21, 2023
1 parent a3d9b25 commit aff2e21
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions libcaca/riscv64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- PKGBUILD
+++ PKGBUILD
@@ -12,8 +12,16 @@ license=('custom:WTFPL')
depends=('freeglut' 'gcc-libs' 'glibc' 'glu' 'imlib2' 'libglvnd' 'libx11' 'ncurses' 'slang' 'zlib')
makedepends=('doxygen' 'pango' 'python')
optdepends=('python: Python bindings')
-source=("https://github.com/cacalabs/libcaca/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2")
-sha256sums=('ff9aa641af180a59acedc7fc9e663543fb397ff758b5122093158fd628125ac1')
+source=("https://github.com/cacalabs/libcaca/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"
+ "$pkgname-fix-instruction-detection.patch::https://github.com/cacalabs/libcaca/pull/76.patch")
+sha256sums=('ff9aa641af180a59acedc7fc9e663543fb397ff758b5122093158fd628125ac1'
+ '2d40a2c2654369e0583f9c26653b56d6b4306d76ad12c78478de489a8f91160b')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../$pkgname-fix-instruction-detection.patch
+ autoreconf -fi
+}

build() {
cd $pkgname-$pkgver

0 comments on commit aff2e21

Please sign in to comment.