summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 116378367d68fa7b6090a6eb3a01bcba1a32cc9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>

# shellcheck disable=SC2034
_pkg="archiso"
_distro="archlinux"
_pkgbase="${_pkg}-profiles"
profile="desktop"
pkgname="${_distro}-${profile}"
pkgver="$(date +%Y.%m.%d)"
pkgrel=1
pkgdesc='Builds an Archlinux desktop'
arch=('any')
license=('AGPL3')
url="https://gitlab.${_distro}.org/tallero/${_pkgbase}"
depends=('archiso-persistent-git'
	 'cryptsetup-nested-cryptkey'
	 'dwm'
	 'fakepkg'
	 'mkinitcpio-archiso-encryption-git'
	 'plymouth-nested-cryptkey'
         'polkit')
makedepends=("devtools" "git" "${_pkgbase}-git")
checkdepends=('shellcheck')
sha256sums=('SKIP')

# shellcheck disable=SC2154
package() {
  local _dest="${pkgdir}/usr/share/${_distro}"
  local _profile="${srcdir}/${_pkgbase}/${profile}"
  local _build_repo="${srcdir}/${_pkgbase}/.gitlab/ci/build_repo.sh"
  cp -r "/usr/share/archiso-profiles/${profile}" "${_profile}"
  cd "${_profile}" || exit
  mkdir -p work
  "${_build_repo} fakepkg"
  install -d -m 0755 -- "${_dest}"
  pkexec mkarchiso -v \
	           -o "${_dest}" \
		   -w "${_profile}/work" \
                      "${_profile}"
}