wok-current view libdrm/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 13e5cfabe816
children 3ad63c8fc2f9
line source
1 # SliTaz package receipt.
3 PACKAGE="libdrm"
4 VERSION="2.4.100"
5 CATEGORY="x-window"
6 SHORT_DESC="Freedesktop DRM Library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://dri.freedesktop.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/$PACKAGE/$TARBALL"
14 DEPENDS="glibc-base linux-drm udev xorg-libpciaccess"
15 BUILD_DEPENDS="gc-dev libpthread-stubs-dev pkg-config \
16 udev-dev xorg-libpciaccess-dev"
17 #xorg-dev xorg-dev-proto
19 HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --enable-intel \
32 --enable-nouveau-experimental-api \
33 --enable-radeon \
34 --enable-udev \
35 --enable-vmwgfx-experimental-api \
36 $CONFIGURE_ARGS &&
37 make -j 1 &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/lib/libdrm.so* $fs/usr/lib
47 cp -a $install/usr/lib/libkms*.so* $fs/usr/lib
48 }