wok-current view tazinst/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | c66ce5a33711 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazinst"
4 VERSION="115"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz installer"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL3"
9 SUGGESTED="syslinux syslinux-extra syslinux-modules grub4dos-linux"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.slitaz.org/"
12 WGET_URL="http://hg.slitaz.org/tazinst/archive/$VERSION.tar.bz2"
13 TAGS="slitaz"
15 DEPENDS="util-linux-blkid lzma parted efibootmgr"
16 SUGGESTED="tazpanel"
17 SIBLINGS="tazinst-gui"
19 current_version()
20 {
21 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
22 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
23 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Thanks Rantanplan, fix mhwaveedit tempdir path
30 patch -p1 < $stuff/fix-mhwaveedit-tempdir-path.patch
32 make &&
33 make DESTDIR=$DESTDIR VERSION=$VERSION install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 #
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/etc $fs
42 cp -a $install/usr/sbin $fs/usr
43 cp -a $install/usr/share/doc $fs/usr/share
44 cp -a $install/usr/share/locale $fs/usr/share
45 chmod 0644 $fs/usr/share/locale/*/*/*.mo
46 chown -R root.root $fs
47 # remove tazinst-gui locales
48 cd $fs/usr/share/locale
49 for lang in *; do
50 rm -f $lang/*/installer.mo
51 done
52 }