2020-05-22 10:14:34 +02:00
|
|
|
# Maintainer: Marcus Schaefer <ms@suse.com>
|
|
|
|
# Maintainer: David Cassany <dcassany@suse.com>
|
|
|
|
|
|
|
|
pkgname=('python-kiwi' 'kiwi-man-pages' 'dracut-kiwi-lib' 'dracut-kiwi-oem-repart' 'dracut-kiwi-oem-dump' 'dracut-kiwi-live' 'dracut-kiwi-overlay')
|
|
|
|
arch=(x86_64)
|
2024-03-28 16:48:33 +01:00
|
|
|
pkgver=10.0.10
|
2020-05-22 10:14:34 +02:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="KIWI - Appliance Builder Next Generation"
|
|
|
|
url="https://github.com/SUSE/kiwi/tarball/master"
|
|
|
|
license=('GPL3')
|
2024-03-06 11:08:33 +01:00
|
|
|
makedepends=(make gcc python-build python-docopt python-installer python-lxml python-poetry-core python-requests python-setuptools python-simplejson python-sphinx python-sphinx_rtd_theme python-wheel python-yaml shadow grep)
|
2020-05-22 10:14:34 +02:00
|
|
|
provides=(kiwi-ng kiwi)
|
|
|
|
source=("${pkgname}.tar.gz")
|
|
|
|
changelog="${pkgname}.changes"
|
2024-03-28 16:48:33 +01:00
|
|
|
md5sums=('e4843b51475af492c4e38e49a1de8cb1')
|
2020-05-22 10:14:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
build() {
|
2024-03-06 11:08:33 +01:00
|
|
|
export LANG=C.UTF-8
|
|
|
|
export LC_ALL=C.UTF-8
|
2020-05-22 10:14:34 +02:00
|
|
|
cd kiwi-${pkgver}
|
2024-03-06 11:08:33 +01:00
|
|
|
# Temporarily switch things back to docopt
|
|
|
|
# FIXME: Drop this hack as soon as we can...
|
2024-03-07 16:02:10 +01:00
|
|
|
sed -e 's/docopt-ng.*/docopt = ">=0.6.2"/' -i pyproject.toml
|
2024-03-06 11:08:33 +01:00
|
|
|
make -C doc man
|
|
|
|
python3 -m build --no-isolation --wheel
|
2020-05-22 10:14:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package_python-kiwi(){
|
2023-10-17 09:36:08 +02:00
|
|
|
depends=(python-docopt python-simplejson python-lxml python-requests python-setuptools 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)
|
2020-05-22 13:24:13 +02:00
|
|
|
optdepends=('gnupg: keyring creation for APT package manager')
|
2020-05-22 10:14:34 +02:00
|
|
|
cd kiwi-${pkgver}
|
2024-03-06 11:08:33 +01:00
|
|
|
python3 -m installer --destdir "${pkgdir}/" dist/*.whl
|
2020-05-22 10:14:34 +02:00
|
|
|
ln -sr "${pkgdir}/usr/bin/kiwi-ng" "${pkgdir}/usr/bin/kiwi"
|
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_kiwi-man-pages(){
|
|
|
|
cd kiwi-${pkgver}
|
|
|
|
make buildroot="${pkgdir}/" docdir="/usr/share/doc/${pkgname}" install_package_docs
|
|
|
|
}
|
|
|
|
|
|
|
|
package_dracut-kiwi-lib(){
|
2022-02-01 21:25:13 +01:00
|
|
|
depends=(cryptsetup btrfs-progs gptfdisk coreutils e2fsprogs grep lvm2 mdadm parted util-linux xfsprogs dialog curl xz device-mapper dracut pv bc)
|
2020-05-22 10:14:34 +02:00
|
|
|
cd kiwi-${pkgver}
|
|
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/99kiwi-lib
|
|
|
|
cp -a dracut/modules.d/99kiwi-lib ${pkgdir}/usr/lib/dracut/modules.d/
|
|
|
|
}
|
|
|
|
|
|
|
|
package_dracut-kiwi-oem-repart(){
|
2020-10-02 14:35:15 +02:00
|
|
|
depends=(dracut-kiwi-lib=${pkgver})
|
2020-05-22 10:14:34 +02:00
|
|
|
cd kiwi-${pkgver}
|
|
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-repart
|
|
|
|
cp -a dracut/modules.d/90kiwi-repart ${pkgdir}/usr/lib/dracut/modules.d/
|
|
|
|
}
|
|
|
|
|
|
|
|
package_dracut-kiwi-oem-dump(){
|
2022-02-01 21:25:13 +01:00
|
|
|
depends=(dracut-kiwi-lib=${pkgver} multipath-tools kexec-tools)
|
2020-05-22 10:14:34 +02:00
|
|
|
cd kiwi-${pkgver}
|
|
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-dump
|
|
|
|
cp -a dracut/modules.d/90kiwi-dump ${pkgdir}/usr/lib/dracut/modules.d/
|
2022-02-01 21:25:13 +01:00
|
|
|
cp -a dracut/modules.d/99kiwi-dump-reboot ${pkgdir}/usr/lib/dracut/modules.d/
|
2020-05-22 10:14:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package_dracut-kiwi-live(){
|
|
|
|
depends=(dracut dialog xfsprogs e2fsprogs util-linux device-mapper libisoburn parted)
|
|
|
|
cd kiwi-${pkgver}
|
|
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-live
|
|
|
|
cp -a dracut/modules.d/90kiwi-live ${pkgdir}/usr/lib/dracut/modules.d/
|
|
|
|
}
|
|
|
|
|
|
|
|
package_dracut-kiwi-overlay(){
|
|
|
|
depends=(dracut util-linux)
|
|
|
|
cd kiwi-${pkgver}
|
|
|
|
install -d -m 755 ${pkgdir}/usr/lib/dracut/modules.d/90kiwi-overlay
|
|
|
|
cp -a dracut/modules.d/90kiwi-overlay ${pkgdir}/usr/lib/dracut/modules.d/
|
|
|
|
}
|