wok-undigest view linmodem-agrsm/receipt @ rev 1209

palemoon: --without-intl-api
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Nov 24 22:11:06 2016 +0100 (2016-11-24)
parents 83b4ca62624e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linmodem-agrsm"
4 SOURCE="agrsm-11c11040"
5 VERSION="2.1.80~20091225"
6 CATEGORY="network"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="other"
9 SHORT_DESC="Agere Modem Drivers for 11c11040 chipsets"
10 WEB_SITE="http://linmodems.technion.ac.il/packages/ltmodem/11c11040"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 BUILD_DEPENDS="linux linux-module-headers xz"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i \
20 -e 's/\([^_]\)usb_buffer_free/\1usb_free_coherent/' \
21 -e 's/\([^_]\)usb_buffer_alloc/\1usb_alloc_coherent/' \
22 agrsoftmodem.c
23 make KERNEL_DIR=/usr/src/linux KRELEASE=$kvers
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 EXTRAVERSION=_${kvers%.*}
30 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/drivers/net
32 # Compress and install module
33 cp $src/agrmodem.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
34 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrmodem.ko
35 cp $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/
36 xz $src/agrserial.ko $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/agrserial.ko
37 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz
38 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/net/*.ko.xz
39 }
41 post_install()
42 {
43 echo "Processing post-install commands..."
44 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
45 }
47 post_remove()
48 {
49 echo "Processing post-remove commands..."
50 depmod -a
51 }