PKGBUILD 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Maintainer: bill-auger <bill-auger@programmer.net>
  2. pkgname=calamares
  3. pkgver=3.2.20
  4. pkgrel=parabola2
  5. pkgdesc="Distribution-independent installer framework - Parabola edition"
  6. arch=(i686 x86_64)
  7. url=https://calamares.io/
  8. license=(GPL)
  9. depends=(boost-libs ckbcomp dmidecode gptfdisk hwinfo icu kconfig kcoreaddons ki18n
  10. kparts kpmcore libpwquality polkit-qt5 python solid qt5-base qt5ct qt5-svg yaml-cpp)
  11. makedepends=(boost extra-cmake-modules git kservice kwindowsystem qt5-tools)
  12. depends+=(os-prober) # FIXME: qemu+calamares+os-prober was buggy last build - try again
  13. # conflicts=(os-prober) # FIXME: qemu+calamares+os-prober is still buggy
  14. source=(git+https://git.parabola.nu/${pkgname}.git#tag=v${pkgver}-${pkgrel%%.*})
  15. sha256sums=('SKIP')
  16. _version_constraint() # (dep_pkgname)
  17. {
  18. local dep_pkgname=$1
  19. local version=$(pacman -S --print-format='%v' ${dep_pkgname} | tail -n 1)
  20. version=${version%-*}
  21. local version_inc=${version%.*}.$(( ${version##*.} + 1 ))
  22. echo -n "${dep_pkgname}>=${version}" "${dep_pkgname}<${version_inc}"
  23. }
  24. prepare()
  25. {
  26. sed -i "s|_BUILD_DATE_|$(date +%Y.%m)|" ${srcdir}/${pkgname}/src/branding/parabola/branding.desc
  27. }
  28. build()
  29. {
  30. mkdir -p "${srcdir}"/${pkgname}/build
  31. cd "${srcdir}"/${pkgname}/build
  32. cmake -DCMAKE_BUILD_TYPE=Release \
  33. -DCMAKE_INSTALL_PREFIX=/usr \
  34. -DCMAKE_INSTALL_LIBDIR=lib \
  35. -DSKIP_MODULES="contextualprocess dracut dracutlukscfg dummycpp dummyprocess \
  36. dummypython dummypythonqt fsresizer hostinfo initramfs \
  37. initramfscfg interactiveterminal license netinstall networkcfg \
  38. notesqml oemid openrcdmcryptcfg packages plasmalnf plymouthcfg \
  39. preservefiles rawfs removeuser shellprocess tracking unpackfs \
  40. webview" ..
  41. make
  42. }
  43. package()
  44. {
  45. depends+=( $(_version_constraint 'boost-libs') \
  46. $(_version_constraint 'icu' ) \
  47. $(_version_constraint 'kpmcore' ) \
  48. $(_version_constraint 'qt5-base' ) )
  49. cd "${srcdir}"/${pkgname}/build
  50. make DESTDIR=${pkgdir} install
  51. }