summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a5416b63630fd4e7277480758c6a41eb85e64c9 (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
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Jekyll Wu <adaptee at gmail dot com>
# Contributor: Jacco Koning <archlinux@menollo.nl>, with help from qwak
# Contributor: twa022 <twa022@gmail.com>

pkgname=usb-creator
pkgver=0.2.59
pkgrel=1
pkgdesc="Create bootable USB from a LiveCD or disc image of Ubuntu"
arch=('any')
url="https://launchpad.net/usb-creator"
license=('GPL3')
depends=('udisks2' 'syslinux' 'dosfstools' 'mtools' 'cdrkit' 'python-dbus' 'python-gobject'
         'hicolor-icon-theme')
makedepends=('python-distutils-extra')
optdepends=('kdebindings-python: for KDE frontend' 'gtk3: for GTK frontend')
install=usb-creator.install
source=("https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${pkgver}.tar.xz"
        "remove-ubuntu-version-check.patch")
sha256sums=('5cc13df772cb59a146d346ea0d4cd20bca51e110c8c49b0009541fe2428dcd09'
            'bdc29966cda4921e395b07530e0d6a0bda81f99d4b0948fadfda983e05ab51cb')

prepare() {
  cd $pkgname-$pkgver

  patch -Np1 < ../remove-ubuntu-version-check.patch
}

package() {
  cd $pkgname-$pkgver

  python3 setup.py install --root="$pkgdir/" --optimize=1

  # FIXME by adaptee:
  # That setup.py is written with the assumption that /usr/share/kde4/apps is part of
  # $(kde-prefix --path data), which is true for ubuntu. But this assumption does not
  # hold in archlinux, which will make usb-creator-kde fail to load its ui file.
  # So we must put usbcreator-kde.ui to an appropriate place!
  install -Dm0644 gui/usbcreator-kde.ui "$pkgdir"/usr/share/apps/usb-creator-kde/usbcreator-kde.ui

  # FIXME: install manual pages
  install -d "$pkgdir"/usr/share/man/man8
  install -Dm0644 man/$pkgname-{gtk,kde}.8 "$pkgdir"/usr/share/man/man8
}