abinfo "Unpacking ldrm ..."
dpkg -x "$SRCDIR"/libldrm_${__UPSTREAM_VER}_loong64.deb \
    "$PKGDIR"/

abinfo "Moving libraries to the correct location ..."
mv -v "$PKGDIR"/usr/lib/loongarch64-linux-gnu/* \
    "$PKGDIR"/usr/lib/
rm -rv "$PKGDIR"/usr/lib/loongarch64-linux-gnu

abinfo "Setting executable bits for shared objects ..."
chmod -v +x "$PKGDIR"/usr/lib/*.so*
