wok-next diff libdrm-mach64/receipt @ rev 20766

childsplay: up (3.3); tiny edits.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 04:36:32 2018 +0300 (2018-06-06)
parents 6c3718ca17b6
children df20b2110f7e
line diff
     1.1 --- a/libdrm-mach64/receipt	Sat Nov 09 17:34:23 2013 +0000
     1.2 +++ b/libdrm-mach64/receipt	Wed Jun 06 04:36:32 2018 +0300
     1.3 @@ -1,33 +1,29 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libdrm-mach64"
     1.8 -VERSION="20130130"
     1.9 +VERSION="20180107"
    1.10  CATEGORY="x-window"
    1.11 -SHORT_DESC="DRM Library for mach64 (deprecated but no alternative)."
    1.12 +SHORT_DESC="DRM Library for mach64"
    1.13  MAINTAINER="gokhlayeh@slitaz.org"
    1.14  LICENSE="MIT"
    1.15  WEB_SITE="http://dri.freedesktop.org/wiki/DRM"
    1.16 -SOURCE="mach64"
    1.17 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18 +
    1.19 +TARBALL="mach64-$VERSION.tar.gz"
    1.20  WGET_URL="http://trya.alwaysdata.net/linux/$TARBALL"
    1.21  
    1.22 -DEPENDS="linux"
    1.23  BUILD_DEPENDS="linux-module-headers"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 -	cd $src
    1.29 -	#DESTDIR="$DESTDIR/lib/modules/`uname -r`/kernel/"
    1.30 +compile_rules() {
    1.31  	find -name Makefile | xargs sed -i \
    1.32  		"s|/lib/modules/\`uname -r\`/build|/usr/src/linux|"
    1.33 -	KERN_DIR=/usr/src/linux make
    1.34 +	KERN_DIR=/usr/src/linux make || return 1
    1.35 +
    1.36 +	KERNEL_VERSION=$(. $WOK/linux/receipt; echo $VERSION)
    1.37 +	install -Dm644 $src/mach64.ko \
    1.38 +	"$install/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko"
    1.39  }
    1.40  
    1.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 -genpkg_rules()
    1.43 -{
    1.44 -	KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
    1.45 -	install -D -m644 $src/mach64.ko \
    1.46 -	"$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko"
    1.47 +genpkg_rules() {
    1.48 +	copy @std
    1.49 +	DEPENDS="linux"
    1.50  }