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 udev xorg-libpciaccess"
BUILD_DEPENDS="gc-dev libpthread-stubs-dev pkg-config \
    udev-dev xorg-libpciaccess-dev meson"
    #xorg-dev xorg-dev-proto

case $SLITAZ_ARCH in
        i?86)
                DEPENDS="$DEPENDS linux-drm" ;;
        x86_64)                                          
                DEPENDS="$DEPENDS linux64-drm" ;;
esac

HOST_ARCH="i486 arm x86_64"

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
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)