blob: 74ce8ee1cc41ddd073da6d96fb62623016f90aca (
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
45
46
47
48
49
50
51
52
53
|
# Maintainer: envolution
# Contributor: Marco Rubin <marco.rubin@protonmail.com>
# Contributor: Barfin
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributors: Jekyll Wu, Jacco Koning, qwak, twa022, tee
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=usb-creator
pkgver=0.4.0
pkgrel=3
pkgdesc="Create bootable USB from a LiveCD or disc image ISO"
arch=('any')
url="https://git.launchpad.net/~usb-creator-hackers/usb-creator/+git/main"
license=('GPL3')
depends=('cdrkit'
'dosfstools'
'gtk3'
'kde-dev-scripts'
'libisoburn'
'mtools'
'parted'
'python'
'python-dbus'
'python-gobject'
'gobject-introspection'
'python-pyqt6'
'syslinux'
'udisks2')
makedepends=(
'python-installer'
'python-build'
'python-distutils-extra'
)
source=("https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_$pkgver.tar.xz" unitysupport.py)
b2sums=('34ee153a8424e648aae151c44bdeb963e3d23eadb26990d0274a2e2ce85e330eba1ad77e86d021c71684dafc7e5033f6ef42b15cfed5cbbab71e6b3944b9179a'
'41e73bb8e19650cad95b7283952aeb6e411746fb30257575b8bb59cef6c85c7b8651375885a7fda3cb550f2d04dcc52fe4916705cdba1590578fcbe14633e9e0')
prepare() {
cd $pkgname
cp -f ../unitysupport.py usbcreator/frontends/gtk/unitysupport.py
#sed -i 's/except ImportError/except (ImportError, ValueError)//g' usbcreator/frontends/gtk/unitysupport.py
}
build() {
cd $pkgname
python -m build --wheel --no-isolation
}
package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 -t "$pkgdir"/usr/share/man/man8 man/$pkgname-{gtk,kde}.8
}
# vim:set ts=2 sw=2 et:
|