wok 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 | 10ffc140046b |
children | 302c1b557d06 |
files | unetbootin/receipt |
line diff
1.1 --- a/unetbootin/receipt Sat Dec 24 10:22:25 2016 +0100 1.2 +++ b/unetbootin/receipt Sat Dec 24 11:22:27 2016 +0100 1.3 @@ -2,34 +2,36 @@ 1.4 1.5 PACKAGE="unetbootin" 1.6 VERSION="625" 1.7 -SYSTEM="linux" 1.8 CATEGORY="system-tools" 1.9 -SHORT_DESC="Allows you to create bootable Live USB drives. Binary version." 1.10 -MAINTAINER="hackdorte@sapo.pt" 1.11 -LICENSE="GPLv3" 1.12 -WEB_SITE="https://launchpad.net/unetbootin" 1.13 +SHORT_DESC="Allows you to create bootable Live USB drives." 1.14 +MAINTAINER="pascal.bellard@slitaz.org" 1.15 +LICENSE="GPL2" 1.16 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 +WEB_SITE="http://unetbootin.github.io/" 1.18 +WGET_URL="https://github.com/unetbootin/unetbootin/archive/$VERSION.tar.gz" 1.19 1.20 -TARBALL="${PACKAGE}-$SYSTEM-${VERSION}.bin" 1.21 -WGET_URL="${WEB_SITE}/trunk/${VERSION}/+download/${TARBALL}" 1.22 - 1.23 +DEPENDS="syslinux p7zip-full libQtCore libQtGui libQtNetwork" 1.24 +BUILD_DEPENDS="qmake Qt4-dev" 1.25 SUGGESTED="bash gparted xz" 1.26 -DEPENDS="dosfstools libQtCore libQtGui mtools p7zip-full" 1.27 -BUILD_DEPENDS="wget" 1.28 1.29 # Rules to configure and make the package. 1.30 compile_rules() 1.31 { 1.32 - mkdir -p $install/usr/lib/$PACKAGE 1.33 - cp -a $src/* $install/usr/lib/$PACKAGE 1.34 - chmod +x $install/usr/lib/$PACKAGE/$PACKAGE-$SYSTEM-$VERSION.bin 1.35 + cd $src/src/unetbootin 1.36 + sed -i '/^RESOURCES/d' unetbootin.pro 1.37 + lupdate unetbootin.pro 1.38 + lrelease unetbootin.pro 1.39 + qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc" 1.40 + make 1.41 +} 1.42 1.43 - mkdir -p $install/usr/bin 1.44 - cp -a $stuff/* $install/usr/bin 1.45 - chmod +x $install/usr/bin/unetbootin 1.46 - 1.47 - mkdir -p $install/usr/share/applications 1.48 - 1.49 -cat > $install/usr/share/applications/$PACKAGE.desktop <<EOT 1.50 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 +genpkg_rules() 1.52 +{ 1.53 + mkdir -p $fs/usr/bin $fs/usr/share/unetbootin $fs/usr/share/applications 1.54 + cp $src/src/unetbootin/unetbootin $fs/usr/bin 1.55 + cp $src/src/unetbootin/unetbootin_*.qm $fs/usr/share/unetbootin 1.56 + cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT 1.57 [Desktop Entry] 1.58 Type=Application 1.59 Name=Unetbootin 1.60 @@ -39,12 +41,5 @@ 1.61 Terminal=false 1.62 Icon=drive-harddisk-usb 1.63 Exec=unetbootin 1.64 - 1.65 EOT 1.66 } 1.67 - 1.68 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.69 -genpkg_rules() 1.70 -{ 1.71 - cp -a $install/* $fs 1.72 -}