diff --git a/PKGBUILD b/PKGBUILD index eaa89ea0716f9a835f0efddd217cef40fe8581a3..707dbb2f3a1fa6b6d57d59c46e0dade02835bd93 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,23 +10,53 @@ pkgname=( 'sddm-breath-theme') pkgver=21.2.0 pkgrel=4 -url=https://gitlab.manjaro.org/artwork/themes/breath arch=('any') +url="https://gitlab.manjaro.org/artwork/themes/breath" license=('LGPL') -makedepends=('extra-cmake-modules' 'git' 'plasma-framework') +makedepends=('cmake' 'extra-cmake-modules' 'git' 'plasma-framework') source=("git+$url.git") -md5sums=('SKIP') +sha256sums=('SKIP') -prepare() { - mkdir -p build +build() { + + echo "Building plasma5-themes-breath-migration..." + cmake -B build-breath-migration -S breath \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_MIGRATION=ON + make -C build-breath-migration + + echo "Building plasma5-themes-breath..." + cmake -B build-breath -S breath \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_PLASMA_THEMES=ON + make -C build-breath + + echo "Building plasma5-themes-breath-extra..." + cmake -B build-breath-extra -S breath \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_EXTRA_COLORS=ON + make -C build-breath-extra + + echo "Building sddm-breath-theme..." + cmake -B build-sddm -S breath \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_SDDM_THEME=ON + make -C build-sddm } package_plasma5-themes-breath-migration() { pkgconf='Breath theme migration routine for kconf_update' arch=('x86_64' 'aarch64') - cd build && rm -rf * - cmake ../breath -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_MIGRATION=ON - make && make DESTDIR="${pkgdir}" install + + make -C build-breath-migration DESTDIR="${pkgdir}" install } package_plasma5-themes-breath() { @@ -34,31 +64,31 @@ package_plasma5-themes-breath() { depends=('breeze' 'plasma5-themes-breath-migration') conflicts=('plasma5-themes-breath2' 'breath2-icon-themes') replaces=('plasma5-themes-breath2' 'breath2-icon-themes') - cd build && rm -rf * - cmake ../breath -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_PLASMA_THEMES=ON - make && make DESTDIR="${pkgdir}" install + + make -C build-breath DESTDIR="${pkgdir}" install } package_plasma5-themes-breath-extra() { pkgdesc='Additional Breath colors for KDE Plasma 5' - cd build && rm -rf * - cmake ../breath -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_EXTRA_COLORS=ON - make && make DESTDIR="${pkgdir}" install + + make -C build-breath-extra DESTDIR="${pkgdir}" install } package_breath-wallpapers() { pkgdesc='Breath wallpapers' - install -Dm644 ${srcdir}/breath/wallpapers/Bamboo/contents/images/5120x2880.png ${pkgdir}/usr/share/backgrounds/bamboo.png - install -Dm644 ${srcdir}/breath/wallpapers/Bamboo\ at\ Night/contents/images/5120x2880.png ${pkgdir}/usr/share/backgrounds/bambooatnight.png -} + cd "${srcdir}/breath/wallpapers" + install -Dm644 Bamboo/contents/images/5120x2880.png \ + ${pkgdir}/usr/share/backgrounds/bamboo.png + install -Dm644 Bamboo\ at\ Night/contents/images/5120x2880.png \ + ${pkgdir}/usr/share/backgrounds/bambooatnight.png +} package_sddm-breath-theme() { pkgdesc="Breath theme for SDDM" depends=('plasma-framework' 'plasma-workspace') conflicts=('sddm-breath2-theme-dev') replaces=('sddm-breath2-theme') - cd build && rm -rf * - cmake ../breath -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_SDDM_THEME=ON - make && make DESTDIR="${pkgdir}" install + + make -C build-sddm DESTDIR="${pkgdir}" install }