🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829303132333435363738394041424344
pkgname: sharutils
pkgver: '4.15.2'
pkgrel: '2'
pkgdesc: 'Contains utilities that can create ''shell'' archives.'
url: 'https://www.gnu.org/software/sharutils/'
arch: x86_64
depends: []
makedepends: []
source:
- 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz'
- 'gcc10.patch'
- 'glibc-2.28.patch'
- 'buffer-overflow.patch'
sha256sums:
- SKIP
- SKIP
- SKIP
- SKIP
build: |
cd ${pkgname}-${pkgver}
patch -Np1 -i ../gcc10.patch
patch -Np1 -i ../glibc-2.28.patch
patch -Np1 -i ../buffer-overflow.patch
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
./configure --prefix=/usr
make
make DESTDIR=${PKGDIR} install
package: |
true
update: |
local url ext
url="https://ftp.gnu.org/gnu/${pkgname}/"
ext=".tar.xz"
lynx -read_timeout=20 -dump -listonly -nonumbers \
$url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1