summaryrefslogtreecommitdiff
path: root/pcr-testing
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-04-15 15:04:15 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2019-05-04 05:28:57 -0400
commit014ce4c4eb90c88b18f784f6b6d4696b57694afe (patch)
tree6bf3653768bd66ff9ded7f3db74751a38f730e19 /pcr-testing
parent1cdf138907a4d416ac4858874f846823993ad6c3 (diff)
downloadabslibre-014ce4c4eb90c88b18f784f6b6d4696b57694afe.tar.gz
abslibre-014ce4c4eb90c88b18f784f6b6d4696b57694afe.tar.bz2
abslibre-014ce4c4eb90c88b18f784f6b6d4696b57694afe.zip
[calamares]: upgrade
Diffstat (limited to 'pcr-testing')
-rw-r--r--pcr-testing/calamares/PKGBUILD38
1 files changed, 23 insertions, 15 deletions
diff --git a/pcr-testing/calamares/PKGBUILD b/pcr-testing/calamares/PKGBUILD
index 66964933c..49cfcf706 100644
--- a/pcr-testing/calamares/PKGBUILD
+++ b/pcr-testing/calamares/PKGBUILD
@@ -3,23 +3,17 @@
pkgname=calamares
pkgver=3.2.4
-pkgrel='parabola2'
+pkgrel='parabola3'
pkgdesc='Distribution-independent installer framework - Parabola edition'
arch=('i686' 'x86_64')
url=https://calamares.io/
license=('GPL')
-_latest_version() { pacman -Si $1 | awk '$1=="Version" { sub (/-.*/, "" , $3) ; print $3 }' | sort -V | tail -n 1 ; }
-_runtime_couplings=( "boost-libs=$(_latest_version 'boost' )" \
- "icu=$( _latest_version 'icu' )" \
- "kpmcore=$( _latest_version 'kpmcore' )" \
- "qt5-base=$( _latest_version 'qt5-base')" )
-_build_couplings=( "boost=$( _latest_version 'boost' )" )
-depends=(${_runtime_couplings[@]} 'ckbcomp' 'dmidecode' 'gptfdisk' 'hwinfo' 'kconfig'
- 'kcoreaddons' 'ki18n' 'kparts' 'libpwquality' 'os-prober' 'polkit-qt5' 'python'
- 'solid' 'qt5ct' 'qt5-svg' 'yaml-cpp')
-makedepends=(${_build_couplings[@]} 'extra-cmake-modules' 'git' 'kservice' \
- 'kwindowsystem' 'plasma-framework' 'qt5-tools')
+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
@@ -27,10 +21,19 @@ 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}
+ mkdir -p "${srcdir}/${_build_dir}"
+ cd "${srcdir}/${_build_dir}"
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -44,7 +47,12 @@ build()
package()
{
- cd ${srcdir}/${_build_dir}
+ depends+=( $(_version_constraint 'boost-libs') \
+ $(_version_constraint 'icu' ) \
+ $(_version_constraint 'kpmcore' ) \
+ $(_version_constraint 'qt5-base' ) )
+
+ cd "${srcdir}/${_build_dir}"
make DESTDIR=${pkgdir} install
}