Debian Codegraph @

package/python-kiwi-pkgbuild-template

raw
1 # Maintainer: Marcus Schaefer <[email protected]>
2 # Maintainer: David Cassany <[email protected]>
3
4 pkgname=('python-kiwi' 'kiwi-man-pages' 'dracut-kiwi-lib' 'dracut-kiwi-oem-repart' 'dracut-kiwi-oem-dump' 'dracut-kiwi-live' 'dracut-kiwi-overlay')
5 arch=(x86_64)
6 pkgver=%%VERSION
7 pkgrel=0
8 pkgdesc="KIWI - Appliance Builder Next Generation"
9 url="https://github.com/SUSE/kiwi/tarball/master"
10 license=('GPL3')
11 makedepends=(make gcc python-build python-typer python-installer python-lxml python-poetry-core python-requests python-simplejson python-sphinx python-sphinx_rtd_theme python-wheel python-yaml shadow grep)
12 provides=(kiwi-ng kiwi)
13 source=("${pkgname}.tar.gz")
14 changelog="${pkgname}.changes"
15 md5sums=('%%MD5SUM')
16
17
18 build() {
19 export LANG=C.UTF-8
20 export LC_ALL=C.UTF-8
21 cd kiwi-${pkgver}
22 make -C doc man
23 python3 -m build --no-isolation --wheel
24 }
25
26 package_python-kiwi(){
27 depends=(python-typer python-simplejson python-lxml python-requests python-yaml grub qemu squashfs-tools gptfdisk pacman e2fsprogs xfsprogs btrfs-progs libisoburn lvm2 mtools parted multipath-tools rsync tar shadow screen kiwi-man-pages)
28 optdepends=('gnupg: keyring creation for APT package manager')
29 cd kiwi-${pkgver}
30 python3 -m installer --destdir "${pkgdir}/" dist/*.whl
31 ln -sr "${pkgdir}/usr/bin/kiwi-ng" "${pkgdir}/usr/bin/kiwi"
32 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
33 }
34
35 package_kiwi-man-pages(){
36 cd kiwi-${pkgver}
37 make buildroot="${pkgdir}/" docdir="/usr/share/doc/${pkgname}" install_package_docs
38 }
39
40 package_dracut-kiwi-lib(){
41 depends=(cryptsetup btrfs-progs gptfdisk coreutils e2fsprogs grep lvm2 mdadm parted util-linux xfsprogs dialog curl xz device-mapper dracut pv bc)
42 cd kiwi-${pkgver}
43 install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/59kiwi-lib
44 cp -a dracut/modules.d/59kiwi-lib ${pkgdir}/usr/lib/dracut/modules.d/
45 }
46
47 package_dracut-kiwi-oem-repart(){
48 depends=(dracut-kiwi-lib=${pkgver})
49 cd kiwi-${pkgver}
50 install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/55kiwi-repart
51 cp -a dracut/modules.d/55kiwi-repart ${pkgdir}/usr/lib/dracut/modules.d/
52 }
53
54 package_dracut-kiwi-oem-dump(){
55 depends=(dracut-kiwi-lib=${pkgver} multipath-tools kexec-tools)
56 cd kiwi-${pkgver}
57 install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/55kiwi-dump
58 cp -a dracut/modules.d/55kiwi-dump ${pkgdir}/usr/lib/dracut/modules.d/
59 cp -a dracut/modules.d/59kiwi-dump-reboot ${pkgdir}/usr/lib/dracut/modules.d/
60 }
61
62 package_dracut-kiwi-live(){
63 depends=(dracut dialog xfsprogs e2fsprogs util-linux device-mapper libisoburn parted)
64 cd kiwi-${pkgver}
65 install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/55kiwi-live
66 cp -a dracut/modules.d/55kiwi-live ${pkgdir}/usr/lib/dracut/modules.d/
67 }
68
69 package_dracut-kiwi-overlay(){
70 depends=(dracut util-linux)
71 cd kiwi-${pkgver}
72 install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/55kiwi-overlay
73 cp -a dracut/modules.d/55kiwi-overlay ${pkgdir}/usr/lib/dracut/modules.d/
74 }
75
76 package_dracut-kiwi-verity(){
77 depends=(dracut util-linux)
78 cd kiwi-${pkgver}
79 install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/55kiwi-verity
80 cp -a dracut/modules.d/50kiwi-verity ${pkgdir}/usr/lib/dracut/modules.d/
81 }