Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2021-01-25 12:06:24 -0300
committerGiancarlo Razzolini <grazzolini@archlinux.org>2021-01-25 12:06:24 -0300
commitdb4659a3eb32efefc14a073fc9049d2cf3a551d6 (patch)
treed3ab5eefa49004ca38cacd8f7c4773c47816cef2
parent5c696c4bc1f0d0e3abae105616fe783b85d6771a (diff)
Move PKGBUILD dir to PKGBUILDs dir and create a new PKGBUILD for git
Create a new PKGBUILD that builds from the current git directory for ease of testing. Moved the PKGBUILD directory to PKGBUILDs.
-rw-r--r--PKGBUILD44
-rw-r--r--PKGBUILDs/archinstall-bin/PKGBUILD (renamed from PKGBUILD/archinstall-bin/PKGBUILD)0
-rw-r--r--PKGBUILDs/archinstall/PKGBUILD (renamed from PKGBUILD/archinstall/PKGBUILD)0
-rw-r--r--PKGBUILDs/python-archinstall/PKGBUILD (renamed from PKGBUILD/python-archinstall/PKGBUILD)0
4 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000..7e073666
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Anton Hvornum <anton@hvornum.se>
+# Contributor: Giancarlo Razzolini <grazzolini@archlinux.org>
+# Contributor: demostanis worlds <demostanis@protonmail.com>
+
+pkgbase=archinstall-git
+pkgname=('archinstall-git' 'python-archinstall-git')
+pkgver=$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
+pkgrel=1
+pkgdesc="Just another guided/automated Arch Linux installer with a twist"
+arch=('any')
+url="https://github.com/Torxed/archinstall"
+license=('GPL')
+depends=('python')
+makedepends=('python-setuptools')
+
+build() {
+ cd "$startdir"
+
+ python setup.py build
+}
+
+
+package_archinstall-git() {
+ depends=('python-archinstall-git')
+ conflicts=('archinstall')
+ cd "$startdir"
+
+ mkdir -p "${pkgdir}/usr/bin"
+
+ # Install a guided profile
+ cat - > "${pkgdir}/usr/bin/archinstall" <<EOF
+#!/bin/sh
+python -m archinstall $@
+EOF
+
+ chmod +x "${pkgdir}/usr/bin/archinstall"
+}
+
+package_python-archinstall-git() {
+ conflicts=('python-archinstall')
+ cd "$startdir"
+
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+}
diff --git a/PKGBUILD/archinstall-bin/PKGBUILD b/PKGBUILDs/archinstall-bin/PKGBUILD
index cf6c1a9c..cf6c1a9c 100644
--- a/PKGBUILD/archinstall-bin/PKGBUILD
+++ b/PKGBUILDs/archinstall-bin/PKGBUILD
diff --git a/PKGBUILD/archinstall/PKGBUILD b/PKGBUILDs/archinstall/PKGBUILD
index d76fe7cf..d76fe7cf 100644
--- a/PKGBUILD/archinstall/PKGBUILD
+++ b/PKGBUILDs/archinstall/PKGBUILD
diff --git a/PKGBUILD/python-archinstall/PKGBUILD b/PKGBUILDs/python-archinstall/PKGBUILD
index 83b174fc..83b174fc 100644
--- a/PKGBUILD/python-archinstall/PKGBUILD
+++ b/PKGBUILDs/python-archinstall/PKGBUILD