wok-current annotate libdrm-mach64/receipt @ rev 25629
Mass updates for current
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Oct 11 18:45:46 2023 +0000 (10 months ago) |
parents | ede1d184d5c5 |
children |
rev | line source |
---|---|
gokhlayeh@8808 | 1 # SliTaz package receipt. |
gokhlayeh@8808 | 2 |
gokhlayeh@8808 | 3 PACKAGE="libdrm-mach64" |
shann@25629 | 4 VERSION="20180107" |
gokhlayeh@8808 | 5 CATEGORY="x-window" |
gokhlayeh@8808 | 6 SHORT_DESC="DRM Library for mach64 (deprecated but no alternative)." |
gokhlayeh@8808 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15472 | 8 LICENSE="MIT" |
pascal@20669 | 9 WEB_SITE="https://dri.freedesktop.org/wiki/DRM" |
slaxemulator@9623 | 10 SOURCE="mach64" |
slaxemulator@9623 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
gokhlayeh@8808 | 12 WGET_URL="http://trya.alwaysdata.net/linux/$TARBALL" |
gokhlayeh@8808 | 13 |
pascal@15472 | 14 DEPENDS="linux" |
pascal@15472 | 15 BUILD_DEPENDS="linux-module-headers" |
pascal@15472 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
gokhlayeh@8808 | 24 # Rules to configure and make the package. |
gokhlayeh@8808 | 25 compile_rules() |
gokhlayeh@8808 | 26 { |
pascal@8908 | 27 find -name Makefile | xargs sed -i \ |
pascal@8908 | 28 "s|/lib/modules/\`uname -r\`/build|/usr/src/linux|" |
gokhlayeh@8808 | 29 KERN_DIR=/usr/src/linux make |
shann@25629 | 30 |
shann@25629 | 31 # make .ko.xz |
shann@25629 | 32 xz -z $src/mach64.ko |
gokhlayeh@8808 | 33 } |
gokhlayeh@8808 | 34 |
gokhlayeh@8808 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8808 | 36 genpkg_rules() |
gokhlayeh@8808 | 37 { |
gokhlayeh@8808 | 38 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
shann@25629 | 39 install -D -m644 $src/mach64.ko.xz \ |
shann@25629 | 40 "$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko.xz" |
gokhlayeh@8808 | 41 } |