archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / osbuild / trunk / PKGBUILD
blob1e9c2b23fd68c5964b4e8bf03cd6d29b11e5ea33
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Contributor: Achilleas Koutsou <achilleas@koutsou.net>
4 pkgname=osbuild
5 pkgdesc='Build Pipelines for Operating System Artifacts'
6 pkgver=85
7 pkgrel=1
8 url="https://www.osbuild.org"
9 arch=(any)
10 license=(Apache)
11 depends=(bubblewrap curl e2fsprogs qemu-img python util-linux python-yaml python-jsonschema python-toml skopeo)
12 makedepends=(make python-docutils python-setuptools)
13 optdepends=('dnf: build rpm/dnf images'
14             'pacman: build pacman images')
15 source=($pkgname-$pkgver.tar.gz::https://github.com/osbuild/osbuild/archive/refs/tags/v${pkgver}.tar.gz)
16 sha256sums=('b9c6ecb9156842395be83295b53abcb117c00facaa056a22822c39f7db8254ea')
18 prepare() {
19   cd $pkgname-$pkgver
22 build() {
23   cd $pkgname-$pkgver
24   python setup.py build
27 package() {
28   cd $pkgname-$pkgver
29   make man
30   python setup.py install --skip-build --root="$pkgdir"
32   install -m 0755 -d "$pkgdir/usr/lib/osbuild/osbuild"
34   for group in assemblers devices inputs runners schemas sources stages mounts ; do
35     cp -vdr --no-preserve=ownership "$group" "$pkgdir/usr/lib/osbuild/"
36   done
38   # udev rules
39   install -Dm644 data/10-osbuild-inhibitor.rules "$pkgdir"/usr/lib/udev/rules.d/10-osbuild-inhibitor.rules