description="Provides a userspace library for accessing the DRM, direct rendering manager" url="http://xorg.freedesktop.org" packager="spiky " contributors="Pierre B, tnut, tnut" makedepends=(python meson docbook-xsl libxslt xorg-util-macros xorg-libpciaccess ninja) name=xorg-libdrm _name=libdrm version=2.4.109 alias=(libdrm) source=(http://dri.freedesktop.org/${_name}/${_name}-$version.tar.xz) build() { cd ${_name}-$version mkdir build cd build meson --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ -Dudev=true ninja DESTDIR=$PKG ninja install } uptodate() { local ext url name LINX LYNX="lynx -read_timeout=20 -dump -listonly -nonumbers " ext=".tar.gz" url="https://dri.freedesktop.org/${_name}/" name="libdrm-" $LYNX $url/?C=N\;O=A|grep "$ext$"|grep "$url/$name"|sed "s@$ext\$@@"|sed "s@$url/$name@@"|tail -1 }