From aff2e21fe539ff267686b17ce258bc88ac43e37d Mon Sep 17 00:00:00 2001 From: kxxt Date: Wed, 21 Jun 2023 19:08:57 +0800 Subject: [PATCH] addpatch: libcaca Fix instruction detection. The patch is upstreamed as https://github.com/cacalabs/libcaca/pull/76. --- libcaca/riscv64.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libcaca/riscv64.patch diff --git a/libcaca/riscv64.patch b/libcaca/riscv64.patch new file mode 100644 index 000000000..06156bc27 --- /dev/null +++ b/libcaca/riscv64.patch @@ -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