updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tuxboot / PKGBUILD
blobb244ebab0c264291781000b1c76486c032d5373e
1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
2 # based on the unetbootin PKGBUILD
3 pkgname=tuxboot
4 pkgver=0.1
5 pkgrel=1
6 pkgdesc="A tool that helps you to create a bootable Live USB drive for Clonezilla live, DRBL live, GParted live and Tux2live"
7 url="http://www.tuxboot.org/"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-${pkgver}.src.tar.gz)
11 depends=('syslinux' 'p7zip' 'qt' 'mtools' )
12 optdepends=('gksu: for graphically requesting the root password'
13             'kdebase-runtime: for graphically requesting the root password')
14 md5sums=('0f3ce403a9ddceba90ea52b0e39046bc')
16 build() {
17    cd $pkgname-$pkgver
18    sed -i '/^RESOURCES/d' ${pkgname}.pro
19    lupdate ${pkgname}.pro
20    lrelease ${pkgname}.pro
21    qmake "DEFINES += NOSTATIC" "RESOURCES -= tuxboot.qrc" ${pkgname}.pro
22    make
25 package() {
26    cd $pkgname-$pkgver
27    install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
28    mkdir -p ${pkgdir}/usr/share/${pkgname}
29    install -m644 i18n/${pkgname}_*.qm "${pkgdir}/usr/share/${pkgname}/"
30    install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
31    install -Dm644 ${pkgname}.xpm  ${pkgdir}/usr/share/pixmaps/${pkgname}.xpm