-
Notifications
You must be signed in to change notification settings - Fork 558
/
PKGBUILD
82 lines (73 loc) · 1.85 KB
/
PKGBUILD
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Maintainer: David Runge <[email protected]>
# Maintainer: Giancarlo Razzolini <[email protected]>
# Contributor: Anton Hvornum <[email protected]>
# Contributor: demostanis worlds <[email protected]>
pkgname=archinstall
pkgver=3.0.1
pkgrel=1
pkgdesc="Just another guided/automated Arch Linux installer with a twist"
arch=(any)
url="https://github.com/archlinux/archinstall"
license=(GPL3)
depends=(
'arch-install-scripts'
'btrfs-progs'
'coreutils'
'cryptsetup'
'dosfstools'
'e2fsprogs'
'glibc'
'kbd'
'pciutils'
'procps-ng'
'python'
'python-pydantic'
'python-pyparted'
'systemd'
'util-linux'
'xfsprogs'
'lvm2'
'f2fs-tools'
'ntfs-3g'
'reiserfsprogs'
)
makedepends=(
'python-setuptools'
'python-sphinx'
'python-build'
'python-installer'
'python-wheel'
'python-sphinx_rtd_theme'
)
optdepends=(
'python-systemd: Adds journald logging'
)
provides=(python-archinstall archinstall)
conflicts=(python-archinstall archinstall-git)
replaces=(python-archinstall archinstall-git)
source=(
$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz
$pkgname-$pkgver.tar.gz.sig::$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.sig
)
sha512sums=()
b2sums=()
validpgpkeys=('256F73CEEFC6705C6BBAB20E5FBBB32941E3740A') # Anton Hvornum (Torxed) <[email protected]>
pkgver() {
cd $pkgname-$pkgver
awk '$1 ~ /^__version__/ {gsub("\"", ""); print $3}' archinstall/__init__.py
}
prepare() {
cd $pkgname-$pkgver
# use real directories for examples and profiles, as symlinks do not work
rm -fv $pkgname/{examples,profiles}
}
build() {
cd $pkgname-$pkgver
python -m build --wheel --no-isolation
PYTHONDONTWRITEBYTECODE=1 make man -C docs
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 docs/_build/man/archinstall.1 -t "$pkgdir/usr/share/man/man1/"
}