SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libdrm"

# SliTaz package receipt.

PACKAGE="libdrm"
VERSION="2.4.109"
CATEGORY="x-window"
SHORT_DESC="Freedesktop DRM Library."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://dri.freedesktop.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$WEB_SITE/$PACKAGE/$TARBALL"

DEPENDS="glibc-base linux-drm udev xorg-libpciaccess"
BUILD_DEPENDS="gc-dev libpthread-stubs-dev pkg-config \
    udev-dev xorg-libpciaccess-dev meson"
    #xorg-dev xorg-dev-proto

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{

        mkdir mbuild && cd mbuild
        meson setup \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --buildtype=release \
    -Dudev=true \
        ..

        ninja build
        DESTDIR=$install ninja install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/libdrm.so*    $fs/usr/lib
    cp -a $install/usr/lib/libkms*.so*    $fs/usr/lib
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)