wok-current view xorg-xf86-video-amdgpu/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-xf86-video-amdgpu"
4 VERSION="21.0.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg server AMDGPU driver."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 SOURCE="xf86-video-amdgpu"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://www.x.org/"
12 WGET_URL="$XORG_MIRROR/driver/$TARBALL"
13 TAGS="xorg display"
15 DEPENDS="xorg-server mesa-dri"
16 BUILD_DEPENDS="xorg-server-dev libpthread-stubs-dev xorg-xf86driproto"
18 MODS='/usr/lib/X11/modules'
20 HOST_ARCH="i486 x86_64"
22 current_version()
23 {
24 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
25 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 --localstatedir=/var \
35 --with-xorg-module-dir=$MODS \
36 --enable-glamor \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p ${fs}${MODS}/drivers
45 cp -a ${install}${MODS}/drivers/*.so ${fs}${MODS}/drivers/
46 }