pkgname=sigil _pkgname=Sigil pkgver=2.1.0 _pagever=2.1.0 pkgrel=1 pkgdesc="A multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format. " arch=('x86_64') url="https://github.com/Sigil-Ebook/Sigil" license=('GPL3') depends=('qt6-webengine' 'qt6-svg' 'qt6-webchannel' 'qt6-5compat' 'boost-libs' 'xerces-c' 'python3-lxml' 'python3-pillow' 'python3-six' 'pyqt6-python3' 'hunspell' 'pcre2') makedepends=('cmake' 'boost' 'qt6-tools' 'clang') #options=('debug') groups=('office') source=("Sigil-${pkgver}.tar.gz::https://github.com/Sigil-Ebook/Sigil/archive/${pkgver}.tar.gz" "PageEdit-${_pagever}.tar.gz::https://github.com/Sigil-Ebook/PageEdit/archive/${_pagever}.tar.gz") #source=("https://github.com/Sigil-Ebook/Sigil/archive/${_commit}.zip") sha256sums=('19fbb22d6dac805090b90c74e2d7ef707d3fdfcd4bc377df009208602646ed61' '1fc56a6b97c62cdf726476d3925b64ce5b3ea68d54cf58d656fd5de8ebfc412f') prepare() { cd ${_pkgname}-${pkgver} # set external editor sed -i -e 's|QString new_xeditor_path = ""|QString new_xeditor_path = "/usr/bin/pageedit"|' src/Dialogs/PreferenceWidgets/GeneralSettingsWidget.cpp } build() { cd ${_pkgname}-${pkgver} mkdir -p build cd build export CC=/usr/bin/clang export CXX=/usr/bin/clang++ cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_SYSTEM_LIBS=1 \ -DINSTALL_HICOLOR_ICONS=1 \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_SKIP_RPATH=ON .. make cd ../.. cd PageEdit-${_pagever} mkdir -p build cd build cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \ -DINSTALL_BUNDLED_DICTS=0 \ -DCMAKE_SKIP_RPATH=ON .. make } package() { cd ${_pkgname}-${pkgver}/build make install DESTDIR=${pkgdir} cd ../.. cd PageEdit-${_pagever}/build make install DESTDIR=${pkgdir} }