update readme; update build scripts; add gnupg to base-efi

This commit is contained in:
Daniel Langbein 2021-04-29 14:49:02 +02:00
parent 8895c1c745
commit e007b1c6db
5 changed files with 57 additions and 20 deletions

View File

@ -48,7 +48,9 @@ Example:
### Home skeleton
Example: [archi3linux PKGBUILD](https://gitlab.com/archi3linux/meta/-/blob/c08ad57993095a575f2e7453c2fe92de97923276/PKGBUILD#L75)
Files from /etc/skel are copied to /home/$USER when new users are created.
Example: [pkg/de-p1st-gnupg/PKGBUILD](pkg/de-p1st-gnupg/PKGBUILD)
### enabling services

View File

@ -1,17 +0,0 @@
#!/bin/bash
# build all packages
for PKG in pkg/*; do
# check if PKGBUILD exists, otherwise skip
[ -f "${PKG}/PKGBUILD" ] || { echo "${PKG} does not contain a PKGBUILD file - skipping this directory!"; continue; }
cd "${PKG}" || exit
aur build -c || exit
# makepkg -Ccsr || exit
cd ../.. || exit
done
# push remote repository
arch-repo-push-new || exit

49
build-pkg.sh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/bash
function build-pkg() {
# $1: package-name
local PKG
PKG="$1"
# check if PKGBUILD exists, otherwise skip
[ -f "pkg/${PKG}/PKGBUILD" ] || {
echo "Package ${PKG} does not contain a PKGBUILD file - skipping it!"; return 0;
}
cd "pkg/${PKG}" || exit
aur build -c || exit
# makepkg -Ccsr || exit
cd ../.. || exit
}
function build-all() {
for PKG in pkg/*; do
build-pkg "$(basename "${PKG}")"
done
}
function main() {
# usage:
# either zero arguments to build all packages
# or the names of the packages to build as arguments
if [ "$#" -gt "0" ]; then
# at least one argument is given
for PKG in "$@"; do
build-pkg "$PKG" || return $?
done
else
# no arguments given
build-all || return $?
fi
# push remote repository
arch-repo-push-new || exit
}
main "$@"

View File

@ -2,8 +2,8 @@
_pkgname=base-efi
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.3
pkgrel=2
pkgver=0.0.4
pkgrel=1
pkgdesc="Arch Linux base packages"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
@ -25,6 +25,9 @@ depends+=('zsh' 'grml-zsh-config')
depends+=('de-p1st-keyboard')
# networking
depends+=('de-p1st-networkmanager' 'de-p1st-dns')
# gnupg
depends+=('de-p1st-gnupg')
# fonts
depends+=('noto-fonts' 'ttf-material-design-icons-git' 'ttf-unifont')