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