diff --git a/README.md b/README.md index 5c50af8..0501e8e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build-all.sh b/build-all.sh deleted file mode 100755 index 6257fe7..0000000 --- a/build-all.sh +++ /dev/null @@ -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 diff --git a/archiso.sh b/build-archiso.sh similarity index 100% rename from archiso.sh rename to build-archiso.sh diff --git a/build-pkg.sh b/build-pkg.sh new file mode 100755 index 0000000..73b79ad --- /dev/null +++ b/build-pkg.sh @@ -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 "$@" diff --git a/pkg/de-p1st-base-efi/PKGBUILD b/pkg/de-p1st-base-efi/PKGBUILD index 574be6b..1942c11 100644 --- a/pkg/de-p1st-base-efi/PKGBUILD +++ b/pkg/de-p1st-base-efi/PKGBUILD @@ -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')