* update libcaca to 0.99.beta20-5

This commit is contained in:
Alexander Baldeck 2024-12-10 18:32:49 +01:00
parent 603a56f745
commit 27ffd122cb
3 changed files with 53 additions and 21 deletions

View File

@ -1,7 +1,7 @@
pkgbase = libcaca
pkgdesc = Color ASCII art library
pkgver = 0.99.beta20
pkgrel = 4.1
pkgrel = 5
url = http://caca.zoy.org/wiki/libcaca
arch = x86_64
arch = powerpc64le
@ -10,6 +10,7 @@ pkgbase = libcaca
arch = riscv64
license = WTFPL
makedepends = doxygen
makedepends = git
makedepends = pango
makedepends = python
depends = freeglut
@ -23,10 +24,9 @@ pkgbase = libcaca
depends = slang
depends = zlib
optdepends = python: Python bindings
options = !lto
source = https://github.com/cacalabs/libcaca/releases/download/v0.99.beta20/libcaca-0.99.beta20.tar.bz2
source = git+https://github.com/cacalabs/libcaca.git#tag=v0.99.beta20
source = libcaca-0.99.beta20-CVE-2022-0856.patch
sha256sums = ff9aa641af180a59acedc7fc9e663543fb397ff758b5122093158fd628125ac1
sha256sums = 242308d530e20f018c1a275a90c0697b107bf2bfd28e928610bbbe80707bdeef
b2sums = 2965c38a6ecb8f9384741ac707f60ba7c6b7e290303f0f2c5f5b9dd28ce89580012c7db647dff15f9dc012fe3e47caa713162d40ffb29f428739db3a66a94e6b
b2sums = 82bc7243844238089c5f513738bd9e95ac6cb88b16202db0655592e4037732a8353b72e5bd26ad73cdb32ad2da5d864bbb9ee5196bc0c3d2805c397e7686f728
pkgname = libcaca

4
libcaca/.nvchecker.toml Normal file
View File

@ -0,0 +1,4 @@
[libcaca]
source = "git"
git = "https://github.com/cacalabs/libcaca.git"
prefix = "v"

View File

@ -5,41 +5,69 @@
pkgname=libcaca
pkgver=0.99.beta20
pkgrel=4.1
pkgrel=5
pkgdesc='Color ASCII art library'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='http://caca.zoy.org/wiki/libcaca'
license=('WTFPL')
depends=('freeglut' 'gcc-libs' 'glibc' 'glu' 'imlib2' 'libglvnd' 'libx11' 'ncurses' 'slang' 'zlib')
makedepends=('doxygen' 'pango' 'python')
options=(!lto)
license=(WTFPL)
depends=(
freeglut
gcc-libs
glibc
glu
imlib2
libglvnd
libx11
ncurses
slang
zlib
)
makedepends=(
doxygen
git
pango
python
)
optdepends=('python: Python bindings')
source=("https://github.com/cacalabs/libcaca/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"
'libcaca-0.99.beta20-CVE-2022-0856.patch')
sha256sums=('ff9aa641af180a59acedc7fc9e663543fb397ff758b5122093158fd628125ac1'
'242308d530e20f018c1a275a90c0697b107bf2bfd28e928610bbbe80707bdeef')
case "${CARCH}" in
powerpc*|riscv64) options=(!lto) ;;
esac
source=(
"git+https://github.com/cacalabs/libcaca.git#tag=v$pkgver"
libcaca-0.99.beta20-CVE-2022-0856.patch
)
b2sums=(
2965c38a6ecb8f9384741ac707f60ba7c6b7e290303f0f2c5f5b9dd28ce89580012c7db647dff15f9dc012fe3e47caa713162d40ffb29f428739db3a66a94e6b
82bc7243844238089c5f513738bd9e95ac6cb88b16202db0655592e4037732a8353b72e5bd26ad73cdb32ad2da5d864bbb9ee5196bc0c3d2805c397e7686f728
)
prepare() {
cd $pkgname-$pkgver
cd $pkgname
# Prevent a divide-by-zero by checking for a zero width or height
# https://github.com/cacalabs/libcaca/pull/66
patch -Np1 -i ../libcaca-0.99.beta20-CVE-2022-0856.patch
git apply -3 ../libcaca-0.99.beta20-CVE-2022-0856.patch
autoreconf -fi
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
cd $pkgname
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname-$pkgver
cd $pkgname
make check
}
package() {
cd $pkgname-$pkgver
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
}