2023-03-28 05:14:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
pkgname=calamares
|
|
|
|
pkgver=3.2.49.1
|
2023-03-28 20:05:19 +00:00
|
|
|
pkgrel=2
|
2023-03-28 05:14:03 +00:00
|
|
|
pkgdesc='Universal linux distro graphical installer'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL3')
|
|
|
|
url='https://calamares.io/'
|
2023-03-28 20:10:39 +00:00
|
|
|
depends=('binutils' 'fakeroot' 'qt5-tools' 'kpmcore' 'qt5-location' 'icu' 'qt5-declarative' 'qt5-translations' 'qt5-xmlpatterns' 'kiconthemes' 'kservice' 'kio' 'kparts' 'flex' 'appstream-qt' 'squashfs-tools' 'fish' 'libpwquality' 'qt5-webengine' 'python-qtpy' 'python-qt.py' 'python3')
|
2023-03-28 20:05:19 +00:00
|
|
|
makedepends=('gcc' 'boost' 'patch' 'yaml-cpp' 'ack' 'cmake' 'autoconf' 'automake' 'bison' 'git' 'libtool' 'm4' 'make' 'extra-cmake-modules' 'python-pip')
|
2023-03-28 05:14:03 +00:00
|
|
|
source=("https://github.com/calamares/calamares/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
|
|
|
|
sha256sums=('86bdceb90eb81d42596b780ccd99385002e2b8d45d8fae836156d37b5122d020')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
# apply patch from the source array (should be a pacman feature)
|
|
|
|
local filename
|
|
|
|
for filename in "${source[@]}"; do
|
|
|
|
if [[ "$filename" =~ \.patch$ ]]; then
|
|
|
|
echo "Applying patch ${filename##*/}"
|
|
|
|
patch -p1 -N -i "$srcdir/${filename##*/}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# :
|
|
|
|
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps pylint
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DWITH_PYTHONQT=ON -DAppStreamQt_DIR=... ..
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver/build
|
|
|
|
make DESTDIR="$pkgdir/" install
|
2023-03-28 05:25:20 +00:00
|
|
|
rm -rf "$pkgdir/etc/calamares/*"
|
2023-03-28 05:14:03 +00:00
|
|
|
}
|