summaryrefslogtreecommitdiffstats
path: root/linhes/calamares/PKGBUILD
blob: 4acad0c5ec23093f0e699690b8d0447875756744 (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
# Ezarcher Calamares Installer pkgbuild

pkgname=calamares
pkgver=3.3.12
_pkgver=3.3.12
pkgrel=2
pkgdesc='Distribution-independent installer framework'
arch=('x86_64')
license=(GPL)
url="https://github.com/calamares/calamares"
license=('LGPL')
depends=('cryptsetup' 'dmidecode' 'doxygen' 'gptfdisk' 'hwinfo' 'kconfig' 'kcoreaddons' 'ki18n' 'kparts' 
         'kpmcore' 'kservice' 'kwidgetsaddons' 'libatasmart' 'libplasma' 'libpwquality' 'polkit-qt6' 
         'pybind11' 'python' 'qt6-declarative' 'qt6-svg' 'qt6-tools' 'qt6-virtualkeyboard' 'qt6-webengine' 
         'rsync' 'solid' 'squashfs-tools' 'udisks2' 'upower' 'yaml-cpp')
makedepends=('cmake' 'extra-cmake-modules' 'gawk' 'git' 'kpmcore' 'python-jsonschema' 'python-pyaml' 
             'python-unidecode')

source=("$pkgname-$pkgver.tar.gz::https://github.com/calamares/calamares/releases/download/v$pkgver/calamares-$pkgver.tar.gz")
sha256sums=('f44110a91a4394f34728042136af4b906541babc37e72b3b33664888b3220f2d')

build() {
	cd ${srcdir}/calamares-${pkgver}

	mkdir -p build
	cd build
        cmake .. \
              -DCMAKE_BUILD_TYPE=Release \
              -DCMAKE_INSTALL_PREFIX=/usr \
              -DCMAKE_INSTALL_LIBDIR=/usr/lib \
              -DINSTALL_CONFIG=OFF \
              -DWITH_QT6=ON \
              -DWITH_PYBIND11=ON \
              -DSKIP_MODULES="tracking webview interactiveterminal initramfs netinstall \
                              initramfscfg dracut dracutlukscfg finishedq summaryq \
                              dummyprocess dummypython dummycpp usersq oemid packagechooser \
                              dummypythonqt services-openrc keyboardq zfs zfshostid \
                              localeq plasmalnf welcomeq notesqml packagechooserq"
        make
}

package() {
	cd ${srcdir}/calamares-${pkgver}/build
	make DESTDIR="$pkgdir" install
	install -Dm644 "../calamares.desktop" "$pkgdir/usr/share/applications/calamares.desktop"
}