pkgname: xorg-libxres pkgver: '1.2.3' pkgrel: '1' pkgdesc: X11 resource extension client library url: 'https://xorg.freedesktop.org' arch: x86_64 depends: [] makedepends: - xorgproto - xorg-libx11 - xorg-libxext source: - 'https://xorg.freedesktop.org/releases/individual/lib/libXres-${pkgver}.tar.xz' sha256sums: - d2de8f5401d6c86a8992791654547eb8def585dfdc0c08cc16e24ef6aeeb69dc build: | cd libXres-1.2.3 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static make make DESTDIR="${PKGDIR}" install package: | rm -f ${PKGDIR}/usr/lib/libXRes.la update: | local ext url name LINX LYNX="lynx -read_timeout=20 -dump -listonly -nonumbers " ext=".tar.bz2" url="https://ftp.x.org/archive//individual//lib" name="libXres-" $LYNX $url/?C=M\;O=D|grep "$ext$"|grep "$url/${pkgname}"|sed "s@$ext\$@@"|sed "s@$url/${pkgname}@@"|head -1