wok-next annotate libdrm-mach64/receipt @ rev 20883

Check Repology info from h* to l* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 11 02:06:34 2018 +0300 (2018-07-11)
parents 6c73b944e8dd
children d5aab818505e
rev   line source
al@20444 1 # SliTaz package receipt v2.
gokhlayeh@8808 2
gokhlayeh@8808 3 PACKAGE="libdrm-mach64"
al@20444 4 VERSION="20180107"
gokhlayeh@8808 5 CATEGORY="x-window"
al@20444 6 SHORT_DESC="DRM Library for mach64"
gokhlayeh@8808 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@15472 8 LICENSE="MIT"
gokhlayeh@8808 9 WEB_SITE="http://dri.freedesktop.org/wiki/DRM"
al@20883 10 REPOLOGY="mach64drm"
al@20444 11
al@20444 12 TARBALL="mach64-$VERSION.tar.gz"
gokhlayeh@8808 13 WGET_URL="http://trya.alwaysdata.net/linux/$TARBALL"
gokhlayeh@8808 14
pascal@15472 15 BUILD_DEPENDS="linux-module-headers"
pascal@15472 16
al@20444 17 compile_rules() {
pascal@8908 18 find -name Makefile | xargs sed -i \
pascal@8908 19 "s|/lib/modules/\`uname -r\`/build|/usr/src/linux|"
al@20444 20 KERN_DIR=/usr/src/linux make || return 1
al@20444 21
al@20444 22 KERNEL_VERSION=$(. $WOK/linux/receipt; echo $VERSION)
al@20444 23 install -Dm644 $src/mach64.ko \
al@20444 24 "$install/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko"
gokhlayeh@8808 25 }
gokhlayeh@8808 26
al@20444 27 genpkg_rules() {
al@20444 28 copy @std
al@20444 29 DEPENDS="linux"
gokhlayeh@8808 30 }