wok-current view slitaz-arm-rpi/receipt @ rev 24347
Up expat (2.4.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 02 09:41:22 2022 +0000 (2022-02-02) |
parents | 3bda64f152c3 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-arm-rpi"
4 VERSION="212"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz Raspberry Pi: tools, CGI adm, configs and artwork."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://arm.slitaz.org/rpi/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://hg.slitaz.org/slitaz-arm/archive/$VERSION.tar.bz2"
12 HOST_ARCH="i486 arm"
14 DEPENDS="slitaz-configs dialog"
15 CONFIG_FILES="\
16 /boot/cmdline.txt \
17 /boot/config.txt \
18 /etc/slim.conf \
19 /etc/rcS.conf \
20 /etc/sysctl.conf \
21 /etc/fstab \
22 /etc/modprobe.d/rpi-blacklist.conf"
24 current_version()
25 {
26 wget -O - http://hg.slitaz.org/slitaz-arm/ 2>/dev/null | \
27 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-arm/rev/|;s|<.*||' | \
28 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p ${fs}/usr/sbin
35 case "$ARCH" in
36 i?86)
37 mkdir -p ${fs}/usr/bin \
38 ${fs}/usr/share/applications \
39 ${fs}/usr/share/pixmaps
40 cp -a ${src}/rpi/slitaz-rpi ${fs}/usr/bin
41 cp -a ${src}/rpi/tazbian ${fs}/usr/bin
42 cp -a ${src}/rpi/tazarch ${fs}/usr/bin
43 cp -a ${src}/rpi/data/slitaz-rpi.desktop \
44 ${fs}/usr/share/applications
45 cp -a ${src}/rpi/data/raspberrypi.png \
46 ${fs}/usr/share/pixmaps ;;
47 arm*)
48 mkdir -p ${fs}/var/www/adm
49 cp -a ${src}/rpi/rootfs/* ${fs}
50 # Tools
51 for tool in tazberry piboot pileds raspicomm piface pitft-setup \
52 pibrella piborg/piborg
53 do
54 cp -a ${src}/rpi/${tool} ${fs}/usr/sbin
55 done
56 cp -a ${src}/rpi/cgi-adm/* ${fs}/var/www/adm
57 chown -R root.root ${fs} ;;
58 esac
59 }