mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/sigil to 0.9.9-1
This commit is contained in:
parent
763af90234
commit
9162a33ed3
2 changed files with 47 additions and 41 deletions
|
@ -1,48 +1,66 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
|
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
|
||||||
|
# Maintainer: Alad Wenter <alad@mailbox.org>
|
||||||
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
||||||
# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
|
# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - depend on xerces-c to avoid x86isms in bundled version
|
# - depend on xerces-c to avoid x86isms in bundled version
|
||||||
|
|
||||||
pkgname=sigil
|
pkgname=sigil
|
||||||
pkgver=0.9.8
|
pkgver=0.9.9
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="WYSIWYG ebook editor"
|
pkgdesc="WYSIWYG ebook editor"
|
||||||
arch=('i686' 'x86_64')
|
arch=('x86_64')
|
||||||
url="http://sigil-ebook.com/"
|
url="https://sigil-ebook.com/"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('qt5-webkit' 'python' 'hicolor-icon-theme' 'python-lxml' 'minizip' 'hunspell' 'xerces-c')
|
depends=('hicolor-icon-theme' 'hunspell' 'minizip' 'python-lxml' 'qt5-webkit' 'xerces-c')
|
||||||
makedepends=('qt5-multimedia' 'qt5-tools' 'qt5-svg' 'cmake')
|
makedepends=('qt5-tools' 'qt5-svg' 'cmake')
|
||||||
install=sigil.install
|
optdepends=('hunspell-en: for English dictionary support'
|
||||||
source=("Sigil-${pkgver}.zip::https://github.com/Sigil-Ebook/Sigil/archive/${pkgver}.zip")
|
'hyphen-en: for English hyphenation support in plugins'
|
||||||
md5sums=('478222c6d79b20ff8e596da78069c1b3')
|
'python-html5lib: recommended for plugins'
|
||||||
|
'python-chardet: recommended for plugins'
|
||||||
|
'python-cssselect: recommended for plugins'
|
||||||
|
'python-cssutils: recommended for plugins'
|
||||||
|
'python-pillow: recommended for plugins'
|
||||||
|
'python-regex: recommended for plugins')
|
||||||
|
source=("Sigil-${pkgver}.tar.gz::https://github.com/Sigil-Ebook/Sigil/archive/${pkgver}.tar.gz"
|
||||||
|
"https://github.com/Sigil-Ebook/Sigil/releases/download/${pkgver}/Sigil-${pkgver}.tar.gz.sig")
|
||||||
|
sha256sums=('12c1ace50598aef0a5e1397da3fdcd9c5ed9eba753c476d0ee5ab00a5d2d3764'
|
||||||
|
'SKIP')
|
||||||
|
validpgpkeys=('B5A56206AB0FBC1A24EFAB8AA166D29A8FCDAC63') # Doug Massay <douglaslmassay@gmail.com>
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/Sigil-${pkgver}"
|
cd "${srcdir}/Sigil-${pkgver}"
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
cmake -G "Unix Makefiles" \
|
cmake -G "Unix Makefiles" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DUSE_SYSTEM_LIBS=1 \
|
||||||
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
|
-DSYSTEM_LIBS_REQUIRED=1 \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
|
-DINSTALL_BUNDLED_DICTS=0 \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_SKIP_RPATH=ON .. \
|
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
|
||||||
-DUSE_SYSTEM_LIBS=ON
|
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_SKIP_RPATH=ON ..
|
||||||
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"/Sigil-${pkgver}/build
|
cd "${srcdir}"/Sigil-${pkgver}/build
|
||||||
make install DESTDIR="${pkgdir}"
|
make install DESTDIR="${pkgdir}"
|
||||||
|
|
||||||
for _pic in 16 32 48 128 256; do
|
for _pic in 16 32 48 128 256; do
|
||||||
install -D -m 0644 ../src/Resource_Files/icon/app_icon_${_pic}.png \
|
install -D -m 0644 ../src/Resource_Files/icon/app_icon_${_pic}.png \
|
||||||
"${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
|
"${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
|
||||||
done
|
done
|
||||||
install -Dm644 ../src/Resource_Files/icon/app_icon_128.png \
|
install -Dm644 ../src/Resource_Files/icon/app_icon_128.png \
|
||||||
"$pkgdir/usr/share/pixmaps/$pkgname.png"
|
"$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||||
|
|
||||||
|
# Compile python bytecode
|
||||||
|
python -m compileall "${pkgdir}"/usr/share/sigil/{plugin_launchers/python/,python3lib}
|
||||||
|
python -O -m compileall "${pkgdir}"/usr/share/sigil/{plugin_launchers/python/,python3lib}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
post_install() {
|
|
||||||
update-desktop-database -q
|
|
||||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
post_upgrade() {
|
|
||||||
post_install
|
|
||||||
}
|
|
||||||
|
|
||||||
post_remove() {
|
|
||||||
post_install
|
|
||||||
}
|
|
Loading…
Reference in a new issue