You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
import 'compile/qt'
|
|
|
|
name=unetbootin
|
|
version=625
|
|
update_url='https://unetbootin.github.io/linux_download.html'
|
|
|
|
dlextract "http://launchpad.net/$name/trunk/625/+download/$name-source-$version.tar.gz" \
|
|
'fa7bc1aa37d04ad7f85ea85e5dbf68cc'
|
|
header_end
|
|
|
|
# Allow custom CFLAGS
|
|
cat >> unetbootin.pro << EOF
|
|
QMAKE_CXXFLAGS += \$\$(CXXFLAGS)
|
|
QMAKE_CFLAGS += \$\$(CFLAGS)
|
|
QMAKE_LFLAGS += \$\$(LDFLAGS)
|
|
EOF
|
|
|
|
$(compile_qt_get_cmd lupdate 4) unetbootin.pro
|
|
$(compile_qt_get_cmd lrelease 4) unetbootin.pro
|
|
compile_qt 4
|
|
|
|
# Install the program
|
|
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
|
|
|
|
# Install the translations
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/$name" "$name"_*.qm
|
|
|
|
# Fix the desktop file
|
|
sed -i -e "/Exec=/cExec=$name" "$name.desktop"
|
|
|
|
# Install the desktop file and icons
|
|
install -Dm644 "$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
|
|
for x in 16 22 24 32 48 64 128 192 256 512; do
|
|
install -Dm644 "${name}_$x.png" "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/${x}x$x/apps/$name.png"
|
|
done
|
|
install -Dm644 "${name}_icons.svg" "$dir_install/$dir_prefix/$dir_datadir/icons/scalable/apps/$name.svg"
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|
|
|