Skip to content

Commit

Permalink
removed makedeps dependency and modified copying of config.guess/conf…
Browse files Browse the repository at this point in the history
…ig.sub
  • Loading branch information
Nightwulf committed Nov 17, 2023
1 parent 4831778 commit d5b3067
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions lftp/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
diff --git a/PKGBUILD b/PKGBUILD
index df5e9c3..9ed745c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,7 @@ license=('GPL3')
depends=('glibc' 'gcc-libs' 'readline' 'gnutls' 'expat'
'zlib' 'libidn2' 'ncurses' 'sh' 'hicolor-icon-theme')
optdepends=('perl: needed for convert-netscape-cookies and verify-file')
+makedepends=('autoconf')
url="https://lftp.yar.ru/"
backup=('etc/lftp.conf')
source=(https://lftp.yar.ru/ftp/${pkgname}-${pkgver}.tar.xz{,.asc}
@@ -23,6 +24,8 @@ prepare() {
--- PKGBUILD
+++ PKGBUILD
@@ -23,6 +23,9 @@ prepare() {
cd "${pkgname}"-${pkgver}
# Use gnutls_certificate_verify_peers2 to verify server - FS#80239
patch -Np1 -i ../lftp-4.9.2-gnutls-peers2.patch
+ cp /usr/share/autoconf/build-aux/config.guess "${srcdir}/${pkgname}-${pkgver}/build-aux"
+ cp /usr/share/autoconf/build-aux/config.sub "${srcdir}/${pkgname}-${pkgver}/build-aux"
+ # since config.guess and config.sub are way too old for supporting riscv64, we update them here
+ find . -name config.guess -exec cp -f /usr/share/libtool/build-aux/config.guess {} \;
+ find . -name config.sub -exec cp -f /usr/share/libtool/build-aux/config.sub {} \;
}

build() {

0 comments on commit d5b3067

Please sign in to comment.