wok-undigest view catalyst/receipt @ rev 1003
Add python-py
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 22 18:07:00 2013 +0200 (2013-04-22) |
parents | 7c6880d0a22c |
children | 1ef621db1c6d |
line source
1 # SliTaz package receipt.
3 PACKAGE="catalyst"
4 VERSION="10.12"
5 CATEGORY="x-window"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="AMD/ATI beta drivers (non-free) for Radeon brand cards "
8 WEB_SITE="http://www.ati.amd.com"
9 TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run"
10 WGET="http://www2.ati.com/drivers/linux/$TARBALL"
11 TAGS="drivers graphic video"
12 RUN_OPTS="--extract $PACKAGE-$VERSION"
14 DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp \
15 xorg-libSM xorg-libXi xorg-libXcursor"
16 BUILD_DEPENDS="linux xz xorg-server-dev mesa-dev libdrm-dev linux-module-headers"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 #for i in autoconf.h utsrelease.h ; do
23 #grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
24 #done
25 echo "Applying patches..."
26 patch -Np1 -i $stuff/makefile_compat.patch
27 patch -Np1 -i $stuff/$PACKAGE-${kvers}.patch
28 patch -Np1 -i $stuff/sema_init.patch
29 cd $src/common/lib/modules/fglrx/build_mod
30 cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
31 cp 2.6.x/Makefile .
32 echo "Compiling the Kernel module..."
33 make -C /usr/src/linux SUBDIRS=$(pwd) modules
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTRAVERSION=_${kvers}
41 mkdir -p \
42 $fs/usr/share/pixmaps \
43 $fs/usr/bin \
44 $fs/usr/lib/xorg/modules \
45 $fs/usr/share/licenses/$PACKAGE \
46 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \
47 $fs/etc
49 # Compress and install module
50 cp $src/common/lib/modules/fglrx/build_mod/fglrx.ko \
51 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/
52 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko
53 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.xz
54 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.xz
56 cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE
58 cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/
59 cp -a $src/arch/x86/usr/sbin $fs/usr
60 cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/
62 cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg
63 cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib
64 cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg
66 cp -a $src/common/etc $fs
67 chmod 755 $fs/etc/ati/authatieventsd.sh
68 cp -a $src/common/usr/sbin $fs/usr
70 cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps
71 cp -a $src/common/usr/share/applications $fs/usr/share
72 cp -a $src/common/usr/share/doc $fs/usr/share
73 cp -a $src/common/usr/share/ati $fs/usr/share
74 cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin
75 }
77 pre_install()
78 {
79 echo ""
80 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
81 echo "================================================================================"
82 echo "You are installing a package with proprietary license."
83 echo "You must accept the license."
84 echo "================================================================================"
85 echo ""
86 }
88 post_install()
89 {
90 echo "Processing post-install commands..."
91 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
93 ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri
94 ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1
95 ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1
96 ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1
97 ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1
98 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1
99 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so
101 echo ""
102 echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2"
103 echo "================================================================================"
104 echo "For installing this package, you have to accept the $PACKAGE license."
105 echo "The license is stored in /usr/share/licenses/$PACKAGE "
106 echo -n "Would you like to read the license (y/N) : "; read anser
107 if [ "$anser" = "y" ]; then
108 cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more
109 echo ""
110 fi
111 echo "================================================================================"
112 echo -n "Do you accept the license (y/N) : "; read anser
113 if [ "$anser" = "N" ]; then
114 echo "You did not accept the license, Removing the pkg."
115 tazpkg remove "$PACKAGE"
116 fi
117 }
119 post_remove()
120 {
121 echo "Processing post-remove commands..."
122 depmod -a
123 }