blob: a62009fcd2978be8cf2a30fcd0b47d07896bd815 (
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
|
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=multibootusb
pkgver=9.2.0
pkgrel=1
pkgdesc="Create multi boot live Linux on a USB disk"
url="http://multibootusb.org/"
arch="noarch"
license="GPL-2.0"
depends="python3 p7zip parted util-linux py3-udev mtools py3-dbus py3-six $pkgname-data"
makedepends="py-setuptools"
options="!check" # this package has no tests
subpackages="$pkgname-gui:_gui $pkgname-data:_data"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/mbusb/${pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir" --prefix="/usr"
# remove windows executables
rm -rf "$pkgdir"/usr/share/multibootusb/data/tools/dd \
"$pkgdir"/usr/share/multibootusb/data/tools/mkfs \
"$pkgdir"/usr/share/multibootusb/data/tools/syslinux/syslinux_windows.zip
}
_data() {
description="$description (Data files)"
options="!archcheck"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/multibootusb \
"$subpkgdir"/usr/share
}
_gui() {
description="$description (GUI)"
depends="py3-qt5 $pkgname"
mkdir -p "$subpkgdir"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/pixmaps \
"$pkgdir"/usr/share/applications \
"$subpkgdir"/usr/share
}
sha512sums="461ce6edd835b2a017d96c3987338cd9004894949ac0b121fc289d100b7945dd89970f966e48310b97f312221a2f5a047190c55802d3a07a9eec0bf6ec22356d multibootusb-9.2.0.tar.gz"
|