Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
b713582d
Unverified
Commit
b713582d
authored
4 years ago
by
Bart Ribbers
Browse files
Options
Downloads
Patches
Plain Diff
main/calamares-extensions: drop, upstreamed to Alpine
parent
99b8c5b1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/calamares-extensions/APKBUILD
+0
-106
0 additions, 106 deletions
main/calamares-extensions/APKBUILD
with
0 additions
and
106 deletions
main/calamares-extensions/APKBUILD
deleted
100644 → 0
+
0
−
106
View file @
99b8c5b1
# 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.0
pkgrel
=
1
arch
=
"all !armhf"
# !armhf: qt5-qtdeclarative
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"
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
=
"522582425af0ea246b3d401428728492b3944cccdc4198601bef842fcb9370e302c91373c12781471dd7cbfc94b8c253ab1df4bdb9cdd0e7453eab6f65742608 calamares-extensions-1.1.0.tar.gz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment