* update libcaca to 0.99.beta20-5
This commit is contained in:
parent
603a56f745
commit
27ffd122cb
@ -1,7 +1,7 @@
|
|||||||
pkgbase = libcaca
|
pkgbase = libcaca
|
||||||
pkgdesc = Color ASCII art library
|
pkgdesc = Color ASCII art library
|
||||||
pkgver = 0.99.beta20
|
pkgver = 0.99.beta20
|
||||||
pkgrel = 4.1
|
pkgrel = 5
|
||||||
url = http://caca.zoy.org/wiki/libcaca
|
url = http://caca.zoy.org/wiki/libcaca
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
arch = powerpc64le
|
arch = powerpc64le
|
||||||
@ -10,6 +10,7 @@ pkgbase = libcaca
|
|||||||
arch = riscv64
|
arch = riscv64
|
||||||
license = WTFPL
|
license = WTFPL
|
||||||
makedepends = doxygen
|
makedepends = doxygen
|
||||||
|
makedepends = git
|
||||||
makedepends = pango
|
makedepends = pango
|
||||||
makedepends = python
|
makedepends = python
|
||||||
depends = freeglut
|
depends = freeglut
|
||||||
@ -23,10 +24,9 @@ pkgbase = libcaca
|
|||||||
depends = slang
|
depends = slang
|
||||||
depends = zlib
|
depends = zlib
|
||||||
optdepends = python: Python bindings
|
optdepends = python: Python bindings
|
||||||
options = !lto
|
source = git+https://github.com/cacalabs/libcaca.git#tag=v0.99.beta20
|
||||||
source = https://github.com/cacalabs/libcaca/releases/download/v0.99.beta20/libcaca-0.99.beta20.tar.bz2
|
|
||||||
source = libcaca-0.99.beta20-CVE-2022-0856.patch
|
source = libcaca-0.99.beta20-CVE-2022-0856.patch
|
||||||
sha256sums = ff9aa641af180a59acedc7fc9e663543fb397ff758b5122093158fd628125ac1
|
b2sums = 2965c38a6ecb8f9384741ac707f60ba7c6b7e290303f0f2c5f5b9dd28ce89580012c7db647dff15f9dc012fe3e47caa713162d40ffb29f428739db3a66a94e6b
|
||||||
sha256sums = 242308d530e20f018c1a275a90c0697b107bf2bfd28e928610bbbe80707bdeef
|
b2sums = 82bc7243844238089c5f513738bd9e95ac6cb88b16202db0655592e4037732a8353b72e5bd26ad73cdb32ad2da5d864bbb9ee5196bc0c3d2805c397e7686f728
|
||||||
|
|
||||||
pkgname = libcaca
|
pkgname = libcaca
|
||||||
|
4
libcaca/.nvchecker.toml
Normal file
4
libcaca/.nvchecker.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[libcaca]
|
||||||
|
source = "git"
|
||||||
|
git = "https://github.com/cacalabs/libcaca.git"
|
||||||
|
prefix = "v"
|
@ -5,41 +5,69 @@
|
|||||||
|
|
||||||
pkgname=libcaca
|
pkgname=libcaca
|
||||||
pkgver=0.99.beta20
|
pkgver=0.99.beta20
|
||||||
pkgrel=4.1
|
pkgrel=5
|
||||||
pkgdesc='Color ASCII art library'
|
pkgdesc='Color ASCII art library'
|
||||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||||
url='http://caca.zoy.org/wiki/libcaca'
|
url='http://caca.zoy.org/wiki/libcaca'
|
||||||
license=('WTFPL')
|
license=(WTFPL)
|
||||||
depends=('freeglut' 'gcc-libs' 'glibc' 'glu' 'imlib2' 'libglvnd' 'libx11' 'ncurses' 'slang' 'zlib')
|
depends=(
|
||||||
makedepends=('doxygen' 'pango' 'python')
|
freeglut
|
||||||
options=(!lto)
|
gcc-libs
|
||||||
|
glibc
|
||||||
|
glu
|
||||||
|
imlib2
|
||||||
|
libglvnd
|
||||||
|
libx11
|
||||||
|
ncurses
|
||||||
|
slang
|
||||||
|
zlib
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
doxygen
|
||||||
|
git
|
||||||
|
pango
|
||||||
|
python
|
||||||
|
)
|
||||||
optdepends=('python: Python bindings')
|
optdepends=('python: Python bindings')
|
||||||
source=("https://github.com/cacalabs/libcaca/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"
|
case "${CARCH}" in
|
||||||
'libcaca-0.99.beta20-CVE-2022-0856.patch')
|
powerpc*|riscv64) options=(!lto) ;;
|
||||||
sha256sums=('ff9aa641af180a59acedc7fc9e663543fb397ff758b5122093158fd628125ac1'
|
esac
|
||||||
'242308d530e20f018c1a275a90c0697b107bf2bfd28e928610bbbe80707bdeef')
|
source=(
|
||||||
|
"git+https://github.com/cacalabs/libcaca.git#tag=v$pkgver"
|
||||||
|
libcaca-0.99.beta20-CVE-2022-0856.patch
|
||||||
|
)
|
||||||
|
b2sums=(
|
||||||
|
2965c38a6ecb8f9384741ac707f60ba7c6b7e290303f0f2c5f5b9dd28ce89580012c7db647dff15f9dc012fe3e47caa713162d40ffb29f428739db3a66a94e6b
|
||||||
|
82bc7243844238089c5f513738bd9e95ac6cb88b16202db0655592e4037732a8353b72e5bd26ad73cdb32ad2da5d864bbb9ee5196bc0c3d2805c397e7686f728
|
||||||
|
)
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
|
|
||||||
# Prevent a divide-by-zero by checking for a zero width or height
|
# Prevent a divide-by-zero by checking for a zero width or height
|
||||||
# https://github.com/cacalabs/libcaca/pull/66
|
# 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() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
./configure --prefix=/usr
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var
|
||||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
make check
|
make check
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user