summaryrefslogtreecommitdiff
path: root/community/unetbootin/PKGBUILD
blob: 8f10db3a538301cb713cb10d1d9d65972f6eb4a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 56275 2011-10-04 15:12:06Z arodseth $
# Contributor: Det <nimetonmaili at gmail a-dot com>
# Contributor: Godane aka Christopher Rogers <slaxemulator@gmail.com>
pkgname=unetbootin
pkgver=555
pkgrel=1
pkgdesc="Lets you create bootable Live USB drives"
url="http://unetbootin.sourceforge.net/"
license=('GPL')
arch=('x86_64' 'i686')
depends=('syslinux' 'p7zip' 'qt' 'mtools')
optdepends=('gksu: for graphically requesting the root password'
            'kdebase-runtime: for graphically requesting the root password')
install=${pkgname}.install
source=(http://downloads.sourceforge.net/project/${pkgname}/UNetbootin/${pkgver}/${pkgname}-source-${pkgver}.tar.gz)
sha1sums=('52adee7c2bf05834d59231e6a06ff8522203f4de')

build() {
  lupdate ${pkgname}.pro
  lrelease ${pkgname}.pro
  qmake
  make
}

package() {
  install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
  mkdir -p "${pkgdir}/usr/share/${pkgname}"
  install -m644 ${pkgname}_*.qm "${pkgdir}/usr/share/${pkgname}/"
  install -Dm644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
      install -D ${pkgname}_${i/x*/}.png "${pkgdir}/usr/share/icons/hicolor/${i}/apps/${pkgname}.png"
  done
}