diff options
author | Carsten Teibes | 2014-07-23 18:32:02 +0200 |
---|---|---|
committer | Carsten Teibes | 2014-07-23 18:32:02 +0200 |
commit | 69635a77808ac2e5fc4609f53437215c7ad37693 (patch) | |
tree | f0070ea22308ad9dc9ecfe9bd5f7dbf68964d1f7 /PKGBUILD | |
download | aur-69635a77808ac2e5fc4609f53437215c7ad37693.tar.gz |
[add] usb-creator 0.2.59
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6a5416b63630 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |