blob: df3e3fab60c3ec3d3ccf248465df177326c008de (
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
|
# Copyright (C) 2019,2020 Andreas Grapentin <andreas@grapentin.org>
# Copyright (C) 2019,2020,2021 bill-auger <bill-auger@programmer.net>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the CC0 1.0 License.
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
pkgname=parabola-vmbootstrap
pkgver=20200401
pkgrel=1
arch=('any')
pkgdesc="helper scripts to build and boot parabola virtual machine images"
license=('GPL3')
url="https://git.parabola.nu/parabola-vmbootstrap.git/"
depends=(arch-install-scripts bash binutils librelib parted qemu
qemu-arch-extra qemu-user-static-binfmt sudo wget)
makedepends=(git)
source=(git+https://git.parabola.nu/${pkgname}.git#tag=v${pkgver})
sha256sums=('SKIP')
package()
{
cd "$srcdir"/$pkgname
local _bin_dir="$pkgdir"/usr/bin
local _lib_dir="$pkgdir"/usr/lib/$pkgname
local _lic_dir="$pkgdir"/usr/share/licenses/$pkgname
local _hook_script
install -Dm755 src/pvmbootstrap.sh "$_bin_dir"/pvmbootstrap
install -Dm755 src/pvmboot.sh "$_bin_dir"/pvmboot
install -Dm755 src/pvm2tarball.sh "$_bin_dir"/pvm2tarball
install -Dm755 src/pvm-common.sh.inc "$_lib_dir"/pvm-common.sh.inc
for _hook_script in src/hooks/*
do install -Dm644 $_hook_script "$_lib_dir"/$(basename $_hook_script)
done
install -Dm644 COPYING "$_lic_dir"/LICENSE
}
|