diff options
Diffstat (limited to 'community/calamares-extensions/APKBUILD')
-rw-r--r-- | community/calamares-extensions/APKBUILD | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/community/calamares-extensions/APKBUILD b/community/calamares-extensions/APKBUILD deleted file mode 100644 index 2a043b4a469..00000000000 --- a/community/calamares-extensions/APKBUILD +++ /dev/null @@ -1,114 +0,0 @@ -# Contributor: Oliver Smith <ollieparanoid@postmarketos.org> -# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org> -# Do not change arch to noarch, until this bug is resolved: -# https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10022 -pkgname=calamares-extensions -pkgver=1.1.2 -pkgrel=1 -# armhf blocked by qt5-qtdeclarative -# ppc64le, s390x, mips64 and riscv64 blocked by qt5-qtwebengine -> calamares -arch="all !armhf !ppc64le !s390x !mips64 !riscv64" -url="https://github.com/calamares/calamares-extensions" -pkgdesc="Calamares Branding and Module Examples" -license="GPL-3.0-or-later" -makedepends=" - calamares-dev - qt5-qtsvg-dev - qt5-qtdeclarative-dev - " -source="https://github.com/calamares/calamares-extensions/releases/download/v$pkgver/calamares-extensions-$pkgver.tar.gz - 0001-CMake-adjust-extensions-to-changes-in-Calamares-core.patch - " -options="!check" # has no tests - -# Modules and brandings to build: -# https://github.com/calamares/calamares-extensions/tree/calamares/modules -# https://github.com/calamares/calamares-extensions/tree/calamares/branding -_modules=" - mobile - " -_brandings=" - default-mobile - " - -for i in $_modules; do - subpackages="$pkgname-mod-$i:_module $subpackages" -done -for i in $_brandings; do - subpackages="$pkgname-brand-$i:_branding $subpackages" -done - -# Check if one module/branding is enabled -# $1: name of module/branding -# $2: either $_modules or $_brandings -is_enabled() { - local i - for i in $2; do - [ "$i" = "$1" ] && return 0 - done - return 1 -} - -# Check if string $1 is in CMakeLists.txt and comment it out -comment_out() { - sed -i "s~$1~#&~g" "$builddir/CMakeLists.txt" -} - -prepare() { - default_prepare - - local i - - msg "disabled modules:" - cd "$builddir/modules" - for i in *; do - if ! [ -d "$i" ] || is_enabled "$i" "$_modules"; then - continue - fi - echo " - $i" - comment_out "calamares_add_module_subdirectory( modules/$i " - done - - msg "disabled brandings:" - cd "$builddir/branding" - for i in *; do - if ! [ -d "$i" ] || is_enabled "$i" "$_brandings"; then - continue - fi - echo " - $i" - comment_out "calamares_add_branding_subdirectory( branding/$i " - done -} - -build() { - cmake -B build \ - -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib - cmake --build build -} - -_module() { - local module=${subpkgname##calamares-extensions-mod-} - local path="usr/lib/calamares/modules" - - mkdir -p "$subpkgdir/$path" - mv "$pkgdir/$path/$module" "$subpkgdir/$path/$module" -} - -_branding() { - local branding=${subpkgname##calamares-extensions-brand-} - local path="usr/share/calamares/branding" - - mkdir -p "$subpkgdir/$path" - mv "$pkgdir/$path/$branding" "$subpkgdir/$path/$branding" -} - -package() { - DESTDIR="$pkgdir" cmake --install build -} - -sha512sums=" -d1820e94c5a7036003216d12f77a63fbffb6a73bc6c0a0cdf7b8c2be9a80bc9ee2a9f952fe9f1e84f6b22756a3f48e00b3ce7eb56b9abfe014786181f99b4138 calamares-extensions-1.1.2.tar.gz -ae04e83095b2b3b7af17ed50fa4f30b7141478d7e8fd9e0b495905eba7bcfbb44c58e9c1dbaa9ccbc011b22be01cb12024cb0211fa6d0a9bb585cd8cecfc92aa 0001-CMake-adjust-extensions-to-changes-in-Calamares-core.patch -" |