summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ca5fa6362f21d01fb3ff086bc3fa148c760f1fe (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
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>

# shellcheck disable=SC2034
_pkg="archiso"
_distro="archlinux"
_pkgbase="${_pkg}-profiles"
profile="desktop"
_pkgname="${_distro}-${profile}"
pkgname=("${_pkgname}-gce")
pkgver="$(date +%Y.%m.%d)"
pkgrel=1
pkgdesc="Builds an Archlinux desktop for import in Google Compute Engine."
arch=('i686'
      'pentium4'
      'x86_64')
license=('AGPL3')
url="https://gitlab.${_distro}.org/tallero/${_pkgbase}"
makedepends=("${_pkgname}")
checkdepends=('shellcheck')

## shellcheck disable=SC2154
package() {
  local _dest="${pkgdir}/usr/share/${_distro}"
  local _iso_name="/usr/share/${_distro}/${_pkgname}-x86_64.iso"
  rm -rf "${_dest}"
  mkdir -p "${_dest}"
  cp "${_iso_name}" disk.raw
  tar --format=oldgnu -Sczf "${_dest}/${_pkgname}.tar.gz" disk.raw 
}