desktop/sigil/PKGBUILD
2017-04-01 15:32:54 +02:00

47 lines
1.5 KiB
Bash

pkgname=sigil
_pkgname=Sigil
pkgver=0.9.8
pkgrel=1
pkgdesc="A multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format."
arch=('x86_64')
url="http://sigil-ebook.com/"
license=('GPL3')
depends=('qt5-webkit' 'hicolor-icon-theme' 'python3' 'python3-lxml>=3.5.0' 'python3-six' 'python3-html5lib' 'python3-chardet' 'python3-cssselect' 'python3-cssutils' 'python3-pillow' 'python3-regex')
makedepends=('qt5-multimedia' 'qt5-tools' 'qt5-svg' 'cmake')
categories=('office')
install=sigil.install
source=("${pkgname}-${pkgver}.zip::https://github.com/user-none/Sigil/releases/download/${pkgver}/${_pkgname}-${pkgver}-Code.zip")
sha256sums=('78f9f200c86da326984543bd86cbb8eab91308a5a4d7f8cfcc88eb9b0779749a')
build() {
cd "${srcdir}"
mkdir -p build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS:STRING="$CFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON .. \
-DUSE_SYSTEM_LIBS=OFF
make
}
package() {
cd "${srcdir}/build"
make DESTDIR=$pkgdir install
install -Dm0644 $srcdir/src/Resource_Files/freedesktop/$pkgname.desktop \
$pkgdir/usr/share/applications/$pkgname.desktop
for _pic in 16 32 48 128 256; do
install -Dm0644 ../src/Resource_Files/icon/app_icon_$_pic.png \
$pkgdir/usr/share/icons/hicolor/${_pic}x${_pic}/apps/$pkgname.png
done
install -Dm644 ../src/Resource_Files/icon/app_icon_512.png \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
}