SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libdrm-mach64"

# SliTaz package receipt.

PACKAGE="libdrm-mach64"
VERSION="20180107"
CATEGORY="x-window"
SHORT_DESC="DRM Library for mach64 (deprecated but no alternative)."
MAINTAINER="gokhlayeh@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://dri.freedesktop.org/wiki/DRM"
SOURCE="mach64"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="http://trya.alwaysdata.net/linux/$TARBALL"

DEPENDS="linux"
BUILD_DEPENDS="linux-module-headers"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    find -name Makefile | xargs sed -i \
        "s|/lib/modules/\`uname -r\`/build|/usr/src/linux|"
    KERN_DIR=/usr/src/linux make

    # make .ko.xz
    xz -z $src/mach64.ko
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    install -D -m644 $src/mach64.ko.xz \
    "$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko.xz"
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)