blob: 49cfcf706d9a187ed524220072fc26701ea657f8 (
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
53
54
55
56
57
58
|
# Maintainer: bill-auger <bill-auger@programmer.net>
pkgname=calamares
pkgver=3.2.4
pkgrel='parabola3'
pkgdesc='Distribution-independent installer framework - Parabola edition'
arch=('i686' 'x86_64')
url=https://calamares.io/
license=('GPL')
depends=('ckbcomp' 'dmidecode' 'gptfdisk' 'hwinfo' 'kconfig' 'kcoreaddons' 'ki18n' \
'kparts' 'libpwquality' 'os-prober' 'polkit-qt5' 'python' 'solid' 'qt5ct' \
'qt5-svg' 'yaml-cpp' )
makedepends=('boost' 'extra-cmake-modules' 'git' 'kservice' 'kwindowsystem' \
'plasma-framework' 'qt5-tools' )
_git_tag=v${pkgver}-${pkgrel%%.*}
_build_dir=${pkgname}/build
source=(git+https://git.parabola.nu/${pkgname}.git#tag=${_git_tag})
sha256sums=('SKIP')
_version_constraint() # (_dep_pkgname)
{
_dep_pkgname=$1
_version=$(pacman -S --print-format='%v' ${_dep_pkgname})
_version_inc=${_version%.*}.$(( ${_version##*.} + 1 ))
echo -n " ${_dep_pkgname}>=${_version} ${_dep_pkgname}<${_version_inc} "
}
build()
{
mkdir -p "${srcdir}/${_build_dir}"
cd "${srcdir}/${_build_dir}"
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSKIP_MODULES="contextualprocess dracut dracutlukscfg dummycpp dummyprocess \
dummypython dummypythonqt fsresizer initramfs initramfscfg \
interactiveterminal license openrcdmcryptcfg plymouthcfg \
preservefiles rawfs removeuser shellprocess tracking webview" ..
make
}
package()
{
depends+=( $(_version_constraint 'boost-libs') \
$(_version_constraint 'icu' ) \
$(_version_constraint 'kpmcore' ) \
$(_version_constraint 'qt5-base' ) )
cd "${srcdir}/${_build_dir}"
make DESTDIR=${pkgdir} install
}
|