Skip to content

Commit 7fc65fa

Browse files
committed
Updated PKGBUILD to handle symlink issues for now
1 parent 58a734e commit 7fc65fa

File tree

1 file changed

+37
-17
lines changed

1 file changed

+37
-17
lines changed

PKGBUILD

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,47 @@
1-
# Maintainer: Anton Hvornum <anton@hvornum.se>
2-
# Contributor: Giancarlo Razzolini <grazzolini@archlinux.org>
1+
# Maintainer: David Runge <dvzrv@archlinux.org>
2+
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
3+
# Contributor: Anton Hvornum <anton@hvornum.se>
34
# Contributor: demostanis worlds <demostanis@protonmail.com>
45

5-
pkgname=archinstall-git
6-
pkgver=$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
6+
pkgname=archinstall
7+
pkgver=2.4.2
8+
#pkgver=$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
79
pkgrel=1
810
pkgdesc="Just another guided/automated Arch Linux installer with a twist"
9-
arch=('any')
11+
arch=(any)
1012
url="https://github.com/archlinux/archinstall"
11-
license=('GPL')
12-
depends=('python')
13-
makedepends=('python-setuptools' 'python-sphinx')
14-
provides=('python-archinstall')
15-
conflicts=('archinstall' 'python-archinstall' 'python-archinstall-git')
13+
license=(GPL3)
14+
depends=(python)
15+
makedepends=(python-build python-installer python-flit python-setuptools python-sphinx python-wheel)
16+
provides=(python-archinstall)
17+
conflicts=(python-archinstall)
18+
replaces=(python-archinstall)
19+
source=(
20+
$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
21+
$pkgname-$pkgver.tar.gz.sig::$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz.sig
22+
)
23+
sha512sums=('9516719c4e4fe0423224a35b4846cf5c8daeb931cff6fed588957840edc5774e9c6fe18619d2356a6d76681ae3216ba19f5d0f0bd89c6301b4ff9b128d037d13'
24+
'SKIP')
25+
b2sums=('a29ae767756f74ce296d53e31bb8376cfa7db19a53b8c3997b2d8747a60842ba88e8b18c505bc56a36d685f73f7a6d9e53adff17953c8a4ebaabc67c6db8e583'
26+
'SKIP')
27+
validpgpkeys=('256F73CEEFC6705C6BBAB20E5FBBB32941E3740A') # Anton Hvornum (Torxed) <anton@hvornum.se>
28+
29+
prepare() {
30+
cd $pkgname-$pkgver
31+
# use real directories for examples and profiles, as symlinks do not work
32+
# with flit or setuptools PEP517 backends
33+
rm -fv $pkgname/{examples,profiles}
34+
mv -v examples profiles $pkgname/
35+
}
1636

1737
build() {
18-
cd "$startdir"
19-
python setup.py build
20-
PYTHONDONTWRITEBYTECODE=1 make man -C docs
38+
cd $pkgname-$pkgver
39+
python -m build --wheel --no-isolation
40+
PYTHONDONTWRITEBYTECODE=1 make man -C docs
2141
}
2242

2343
package() {
24-
cd "$startdir"
25-
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
26-
install -vDm 644 docs/_build/man/archinstall.1 -t "${pkgdir}/usr/share/man/man1/"
27-
}
44+
cd "$pkgname-$pkgver"
45+
python -m installer --destdir="$pkgdir" dist/*.whl
46+
install -vDm 644 docs/_build/man/archinstall.1 -t "$pkgdir/usr/share/man/man1/"
47+
}

0 commit comments

Comments
 (0)