Added build support for PKGBUILD. Also slimmed down make.sh to only compile the binary and nothing more. That way it's easier to ship the build to https://archlinux.life/bin/. Updated README to reflext the archlinux.life domain instead of hvornum.se since projects regarding archlinux will reside there or elsewhere in the future.

This commit is contained in:
Anton Hvornum 2020-08-18 21:54:34 +00:00
parent 551bb438a3
commit 76c386951a
3 changed files with 31 additions and 20 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Anton Hvornum anton@hvornum.se
# Contributor: Anton Hvornum anton@hvornum.se
pkgname="archinstall"
pkgver="v2.0.4rc3"
pkgver="2.0.4rc4"
pkgdesc="Installs a pre-built binary of ${pkgname}"
pkgrel=1
url="https://github.com/Torxed/archinstall"
@ -9,16 +9,25 @@ license=('GPLv3')
provides=("${pkgname}")
md5sums=('SKIP')
arch=('x86_64')
source=("${pkgname}-${pkgver}-x86_64.tar.gz")
#makedepends=('python>=3.8')
source=("${pkgname}-v${pkgver}-x86_64.tar.gz::https://github.com/Torxed/archinstall/archive/v$pkgver.tar.gz")
depends=('python>=3.8')
makedepends=('python>=3.8' 'nuitka')
build() {
cd "${pkgname}-${pkgver}"
nuitka3 --standalone --show-progress archinstall
cp -r examples/ archinstall.dist/
}
package() {
cd "${pkgname}-${pkgver}-x86_64"
echo "${srcdir}"
cd "${pkgname}-${pkgver}"
mkdir -p "${pkgdir}/var/lib/archinstall/"
mkdir -p "${pkgdir}/usr/bin"
mv * "${pkgdir}/var/lib/archinstall/"
mv archinstall.dist/* "${pkgdir}/var/lib/archinstall/"
echo '#!/bin/bash' > "${pkgdir}/usr/bin/archinstall"
echo '(cd /var/lib/archinstall && exec ./archinstall)' >> "${pkgdir}/usr/bin/archinstall"

View File

@ -2,20 +2,20 @@
Just another guided/automated [Arch Linux](https://wiki.archlinux.org/index.php/Arch_Linux) installer with a twist.
The installer also doubles as a python library to access each individual installation step for customized installs.
Pre-built ISO's can be found here which autostarts archinstall *(in a safe guided mode)*: https://hvornum.se/archiso/
Pre-built ISO's can be found here which autostarts archinstall *(in a safe guided mode)*: https://archlinux.life/
* archinstall [discord](https://discord.gg/cqXU88y) server
* ~~archinstall [documentation](#)~~ *(TBA)*
* archinstall ISO's: https://hvornum.se/archiso/
* archinstall ISO's: https://archlinux.life/
* archinstall on [#archinstall@freenode (IRC)](irc://#archinstall@FreeNode)
# Installation & Usage
## Run as stand-alone binary on Live-CD
# curl -L https://gzip.app/archinstall > archinstall.tar.gz
# curl -L https://archlinux.life/bin/archinstall > archinstall.tar.gz
# tar xvzf archinstall.tar.gz
# cd archinstall-v2.0.3
# cd archinstall-v2.0.4
# chmod +x archinstall
# ./archinstall
@ -33,9 +33,9 @@ But this will utilize `pacman` to install the pre-compiled binary from above and
## Install Python on Live-CD and run manually:
# wget https://github.com/Torxed/archinstall/archive/v2.0.3.tar.gz
# tar xvzf v2.0.2.tar.gz
# cd archinstall-2.0.2
# wget https://github.com/Torxed/archinstall/archive/v2.0.4.tar.gz
# tar xvzf v2.0.4.tar.gz
# cd archinstall-2.0.4
# pacman -S --noconfirm python; python examples/guided.py
This will ask for a disk and start a guided installation.

18
make.sh
View File

@ -1,15 +1,17 @@
#!/bin/bash
# Description: Crude build/maker script for PKGBUILD dependencies and stuff.
# Description: Binary builder for https://archlinux.life/bin/
rm -rf archinstall.egg-info/ build/ src/ pkg/ dist/ archinstall.build/ archinstall-v2.0.4rc3-x86_64/ *.pkg.*.xz archinstall-*.tar.gz
VERSION="2.0.4rc4"
rm -rf archinstall.egg-info/ build/ src/ pkg/ dist/ archinstall.build/ "archinstall-v${VERSION}-x86_64/" *.pkg.*.xz archinstall-*.tar.gz
nuitka3 --standalone --show-progress archinstall
cp -r examples/ archinstall.dist/
mv archinstall.dist archinstall-v2.0.4rc3-x86_64
tar -czvf archinstall-v2.0.4rc3.tar.gz archinstall-v2.0.4rc3-x86_64
makepkg -f
mv archinstall.dist "archinstall-v${VERSION}-x86_64"
tar -czvf "archinstall-v${VERSION}.tar.gz" "archinstall-v${VERSION}-x86_64"
python3 setup.py sdist bdist_wheel
echo 'python3 -m twine upload dist/*; rm -rf dist/'
# makepkg -f
# python3 setup.py sdist bdist_wheel
# echo 'python3 -m twine upload dist/*; rm -rf dist/'
rm -rf archinstall.egg-info/ build/ src/ pkg/ archinstall.build/ archinstall-v2.0.4rc3-x86_64/
rm -rf archinstall.egg-info/ build/ src/ pkg/ archinstall.build/ "archinstall-v${VERSION}-x86_64/"