summaryrefslogtreecommitdiff
path: root/pcr-testing/calamares/PKGBUILD
blob: 90779af2ff6fc0a15f2159016a3c3c9b18aecbb1 (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
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: bill-auger <bill-auger@programmer.net>


pkgname=calamares
pkgver=3.1.9
pkgrel='parabola5.1'
pkgdesc='Distribution-independent installer framework - Parabola edition'
arch=('i686' 'x86_64')
license=('GPL')
url="https://calamares.io/"

_latest_version() { pacman -Si $1 | grep Version | cut -d ':' -f 2 | sed 's/\s//g' ; }
_build_couplings=("boost=$(_latest_version 'boost')")
_runtime_couplings=("boost-libs=$(_latest_version 'boost')"
                    "kpmcore=$(_latest_version 'kpmcore')")
makedepends=(${_build_couplings[@]} 'extra-cmake-modules' 'git' 'qt5-tools')
depends=(${_runtime_couplings[@]} 'dmidecode' 'gptfdisk' 'hwinfo' 'kconfig' 'kcoreaddons'
         'ki18n' 'kparts' 'os-prober' 'polkit-qt5' 'python' 'squashfs-tools' 'solid'
         'qt5ct' 'qt5-styleplugins' 'qt5-svg' 'yaml-cpp')

_git_tag="${pkgver}-${pkgrel%%.*}"
source=("https://notabug.org/bill-auger/calamares/archive/v${_git_tag}.tar.gz"
        welcome-lxde.txt
        welcome-mate.txt)
sha256sums=('819fa6cb493592e99be5ef1cc7589b7fff00471eee7a622c6e53a8478abf4410'
            'f4eac2d05a33daaf75e81b4240124dbbd98e662797335ab116501e92b20e9849'
            '6211c6a404fc1a9437d291603fe9990580561f1057463a1f414f3662ff798a24')


build()
{
  mkdir -p ${srcdir}/calamares/build
  cd ${srcdir}/calamares/build

  cmake -DCMAKE_BUILD_TYPE=Debug                                                    \
        -DCMAKE_INSTALL_PREFIX=/usr                                                 \
        -DCMAKE_INSTALL_LIBDIR=lib                                                  \
        -DSKIP_MODULES="dracut dracutlukscfg dummycpp dummyprocess dummypython      \
                        dummypythonqt initramfs initramfscfg interactiveterminal    \
                        license plymouthcfg removeuser webview"                  ..
}

package()
{
  cd ${srcdir}/calamares/build

  make DESTDIR=${pkgdir} install

  # ASSERT: one welcome-<DESKTOP>*.txt for each DESKTOP in calamares GS::DESKTOPS_KEY
  install -d ${pkgdir}/usr/share/calamares/welcome/
  cp ${srcdir}/welcome-*.txt ${pkgdir}/usr/share/calamares/welcome/
}