pkgname: pth pkgver: '2.0.7' pkgrel: '2' pkgdesc: 'Contains a very portable POSIX/ANSI-C based library for Unix platforms' url: 'http://www.gnu.org/software/pth/' arch: x86_64 depends: [] makedepends: [] source: - 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz' sha256sums: - SKIP build: | cd ${pkgname}-${pkgver} sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in ./configure --prefix=/usr \ --mandir=/usr/share/man \ --disable-static make make -j1 DESTDIR=${PKGDIR} install # Obsolet lib rm -f ${PKGDIR}/usr/lib/libpth.la package: | true update: | local url ext url="https://ftp.gnu.org/gnu/${pkgname}/" ext=".tar.gz" 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