wok annotate unetbootin/receipt @ rev 19576
unetbootin: build from sources
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 24 11:22:27 2016 +0100 (2016-12-24) |
parents | 70e3f8be8c1a |
children | 302c1b557d06 |
rev | line source |
---|---|
hackdorte@19155 | 1 # SliTaz package receipt. |
hackdorte@19155 | 2 |
hackdorte@19155 | 3 PACKAGE="unetbootin" |
hackdorte@19155 | 4 VERSION="625" |
hackdorte@19155 | 5 CATEGORY="system-tools" |
pascal@19576 | 6 SHORT_DESC="Allows you to create bootable Live USB drives." |
pascal@19576 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19576 | 8 LICENSE="GPL2" |
pascal@19576 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@19576 | 10 WEB_SITE="http://unetbootin.github.io/" |
pascal@19576 | 11 WGET_URL="https://github.com/unetbootin/unetbootin/archive/$VERSION.tar.gz" |
hackdorte@19155 | 12 |
pascal@19576 | 13 DEPENDS="syslinux p7zip-full libQtCore libQtGui libQtNetwork" |
pascal@19576 | 14 BUILD_DEPENDS="qmake Qt4-dev" |
hackdorte@19155 | 15 SUGGESTED="bash gparted xz" |
hackdorte@19155 | 16 |
hackdorte@19155 | 17 # Rules to configure and make the package. |
hackdorte@19155 | 18 compile_rules() |
hackdorte@19155 | 19 { |
pascal@19576 | 20 cd $src/src/unetbootin |
pascal@19576 | 21 sed -i '/^RESOURCES/d' unetbootin.pro |
pascal@19576 | 22 lupdate unetbootin.pro |
pascal@19576 | 23 lrelease unetbootin.pro |
pascal@19576 | 24 qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" |
pascal@19576 | 25 make |
pascal@19576 | 26 } |
hackdorte@19155 | 27 |
pascal@19576 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19576 | 29 genpkg_rules() |
pascal@19576 | 30 { |
pascal@19576 | 31 mkdir -p $fs/usr/bin $fs/usr/share/unetbootin $fs/usr/share/applications |
pascal@19576 | 32 cp $src/src/unetbootin/unetbootin $fs/usr/bin |
pascal@19576 | 33 cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin |
pascal@19576 | 34 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT |
hackdorte@19155 | 35 [Desktop Entry] |
hackdorte@19155 | 36 Type=Application |
hackdorte@19155 | 37 Name=Unetbootin |
hackdorte@19156 | 38 Comment=Unetbootin allows you to create bootable Live USB drives. |
hackdorte@19155 | 39 Categories=GTK;System;Filesystem; |
hackdorte@19155 | 40 StartupNotify=false |
hackdorte@19155 | 41 Terminal=false |
hackdorte@19155 | 42 Icon=drive-harddisk-usb |
hackdorte@19155 | 43 Exec=unetbootin |
hackdorte@19155 | 44 EOT |
hackdorte@19155 | 45 } |