mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
community/lha: upgrade to 20211125, fix build with gcc14
This commit is contained in:
parent
f6a0617e5a
commit
34d8e813b1
2 changed files with 22 additions and 7 deletions
|
@ -1,19 +1,21 @@
|
|||
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
pkgname=lha
|
||||
pkgver=1.14i
|
||||
pkgrel=4
|
||||
pkgver=1.14.20211125
|
||||
pkgrel=5
|
||||
pkgdesc="Compression and archive utility for LH-7 format archives"
|
||||
url="https://github.com/jca02266/lha/"
|
||||
arch="all"
|
||||
license="custom"
|
||||
subpackages="$pkgname-doc"
|
||||
makedepends="autoconf automake libtool"
|
||||
checkdepends="bash"
|
||||
source="http://osdn.dl.osdn.net/lha/22231/lha-1.14i-ac20050924p1.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver-ac20050924p1"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/jca02266/lha/archive/refs/tags/release-${pkgver#1.14.}.tar.gz
|
||||
gcc14.patch"
|
||||
builddir="$srcdir/lha-release-${pkgver#1.14.}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
update_config_sub
|
||||
autoreconf -vif
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -33,9 +35,9 @@ check() {
|
|||
|
||||
package() {
|
||||
make "DESTDIR=$pkgdir" install
|
||||
#install -D -m755 $srcdir/lha $pkgdir/usr/bin/lha
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
efe43d407d273f8f724f7b205223bd122c76adac4b67ad5e9811e88cae03f1f3c3af4297aa6f24951a02558975bbafacf697e97ab0da578b4e0115b89237566f lha-1.14i-ac20050924p1.tar.gz
|
||||
fb72b6c597701c41b34723218d78002d3502034ddf429f55b6ddda5925dd48df63913048d99f7834399cca4eaa28423e104b881082fb5ace8e6e998b97b2e889 lha-1.14.20211125.tar.gz
|
||||
0edd18654e2ac57d790c42b7ce795885d1950b0ec93a8b567f6946356eb51123a4097e69057de658bb8864878e83ec96966c1dcaa29fa349d0a9c30daed48887 gcc14.patch
|
||||
"
|
||||
|
|
13
community/lha/gcc14.patch
Normal file
13
community/lha/gcc14.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/header.c b/src/header.c
|
||||
index ecd585d..e785369 100644
|
||||
--- a/src/header.c
|
||||
+++ b/src/header.c
|
||||
@@ -68,7 +68,7 @@ calc_sum(p, len)
|
||||
}
|
||||
|
||||
static void
|
||||
-_skip_bytes(len)
|
||||
+_skip_bytes(int len)
|
||||
{
|
||||
if (len < 0) {
|
||||
error("Invalid header: %d", len);
|
Loading…
Reference in a new issue