SHA256
1
0
forked from pool/python-kiwi
python-kiwi/PKGBUILD
Marcus Schaefer 7ecf541443 - Bump version: 9.24.5 → 9.24.6
- Followup fix for debootstrap called only once
  A recent change skipped calling debootstrap if the allow-existing-root
  flag was passed in combination with apt as the package manager.
  However this is not enough. If you say allow-existing-root but
  the existing root is empty or not valid to continue with chroot
  and apt the debootstrap phase should not be skipped. This commit
  checks if apt works in the chroot such that we can assume
  debootstrap has done its job and can be skipped

- Bump version: 9.24.4 → 9.24.5

- Fixed include processing
  This commit fixes several issue connected with the use of
  the <include> directive:
  First and foremost the XSLT chain was broken in a way that
  the include XSLT in combination with the PrettyPrinter XSLT
  were called not in the chain of stylesheets but together.
  This results in XML descriptions which duplicated the content
  and went invalid
  Another change is, when the include XSLT is called in the chain.
  This commit moves it to become the very first processing
  instruction such that the included data is part of all subsequent
  XSLT stylesheets. This also allows to use older schema versions
  in included XML data and they get automatically converted through
  the chain of XSLT stylesheets.
  Last change is the evaluation of the from= attribute value. This
  value is now interpreted as an URI. Currently only local URIs are
  supported. The reason to do this is because XSLT when processing

OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Builder/python-kiwi?expand=0&rev=208
2021-11-12 22:13:20 +00:00

71 lines
2.6 KiB
Bash

# 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)
pkgver=9.24.6
pkgrel=0
pkgdesc="KIWI - Appliance Builder Next Generation"
url="https://github.com/SUSE/kiwi/tarball/master"
license=('GPL3')
makedepends=(python-setuptools gcc shadow grep)
provides=(kiwi-ng kiwi)
source=("${pkgname}.tar.gz")
changelog="${pkgname}.changes"
md5sums=('74cbc9283eb117626209c7f212f957a3')
build() {
cd kiwi-${pkgver}
python setup.py build
}
package_python-kiwi(){
depends=(python-docopt python-simplejson python-future python-lxml python-requests python-setuptools python-six python-pyxattr 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)
optdepends=('gnupg: keyring creation for APT package manager')
cd kiwi-${pkgver}
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
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(){
depends=(cryptsetup btrfs-progs gptfdisk coreutils e2fsprogs grep lvm2 mdadm parted util-linux xfsprogs dialog curl xz device-mapper dracut)
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(){
depends=(dracut-kiwi-lib=${pkgver})
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(){
depends=(dracut-kiwi-lib=${pkgver} multipath-tools)
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/
}
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/
}