From 34d8e813b11f4beff92ca50144207627b95c99df Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 9 Sep 2024 17:20:37 +0200 Subject: [PATCH] community/lha: upgrade to 20211125, fix build with gcc14 --- community/lha/APKBUILD | 16 +++++++++------- community/lha/gcc14.patch | 13 +++++++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 community/lha/gcc14.patch diff --git a/community/lha/APKBUILD b/community/lha/APKBUILD index 3b3fbb522db..2855cb02ddb 100644 --- a/community/lha/APKBUILD +++ b/community/lha/APKBUILD @@ -1,19 +1,21 @@ # Maintainer: Leonardo Arena 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 " diff --git a/community/lha/gcc14.patch b/community/lha/gcc14.patch new file mode 100644 index 00000000000..48b7510e744 --- /dev/null +++ b/community/lha/gcc14.patch @@ -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);