-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalamares
52 lines (35 loc) · 1.15 KB
/
calamares
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
#HOLD_TUCANA
PKG_VER=3.3.8
URL=https://github.com/calamares/calamares/releases/download/v$PKG_VER/calamares-$PKG_VER.tar.gz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
# Get Package
cd /blfs/builds
wget $URL
wget https://raw.githubusercontent.com/Tucana-Linux/Tucana/main/mercury/patches/calamares-tucana-$PKG_VER.patch
tar -xvf $TAR
cd $DIR
# Build
patch -Np1 < ../calamares-tucana-$PKG_VER.patch
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_QT6=ON -Wno-dev -G Ninja ..
ninja
# Install
sudo DESTDIR=/pkgs/$PACKAGE ninja install
# Install the configs
git clone https://github.com/rahulc07/calamares-configs.git
mkdir -p /pkgs/$PACKAGE/usr/share/calamares/
cp -rpv calamares-configs/* /pkgs/$PACKAGE/usr/share/calamares
cd /pkgs
sudo echo "yamlcpp kconfig kcoreaddons ki18n kiconthemes kpmcore kio qt6 repochooser git" > /pkgs/$PACKAGE/depends
sudo echo "kf6 cmake git ecm" > /pkgs/$PACKAGE/make-depends
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR