1 # Maintainer: Dan Serban
2 # Contributor: Fabien Valthier
7 pkgdesc="Create multiboot USB keys"
9 url=http://liveusb.info/dotclear/index.php
11 depends=(bash cabextract cdrkit cryptsetup dosfstools fuseiso gettext gksu gtkdialog hal hdparm imagemagick parted qemu rsync squashfs-tools syslinux unzip wmctrl xdotool xterm xz zenity)
12 optdepends=(grub2-bios)
15 [ "${CARCH}" == "x86_64" ] && _filearch=amd64
20 rm fatresize_*.deb 2>/dev/null || true
21 _url=$(lynx -dump http://archive.ubuntu.com/ubuntu/pool/universe/f/fatresize/ | grep -o http.*/fatresize_.*${_filearch}\.deb | tail -1)
23 bsdtar -xf $(basename ${_url}) data.tar.gz
24 bsdtar -xf data.tar.gz || true
28 rm multisystem_*.deb 2>/dev/null || true
29 _url=$(lynx -dump http://liveusb.info/multisystem/depot/dists/all/main/binary-i386/m/ | grep -o http.*deb | tail -1)
31 bsdtar -xf $(basename ${_url}) data.tar.gz
32 bsdtar -xf data.tar.gz || true
37 cd "${srcdir}"/usr/local
38 mv bin share "${srcdir}"/usr/
43 mv bin share "${pkgdir}"/usr/
44 sed -i 's#cat /etc/group | grep ^adm#cat /etc/group | grep ^users#' "${pkgdir}"/usr/share/multisystem/gui_multisystem.sh
45 sed -i 's#/usr/local/#/usr/#' "${pkgdir}"/usr/bin/multisystem
46 sed -i 's#/usr/local/#/usr/#;s#\[fr_FR\]##' "${pkgdir}"/usr/share/applications/multisystem-liveusb.desktop
47 sed -i 's#/usr/local/#/usr/#;s#\[fr_FR\]##' "${pkgdir}"/usr/share/applications/multisystem-vbox.desktop
48 sed -i '/testlist=/d' "${pkgdir}"/usr/share/multisystem/gui_multisystem.sh