PKGBUILDs/community/sigil/PKGBUILD

49 lines
1.4 KiB
Bash
Raw Normal View History

2015-05-20 00:53:47 +00:00
# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - depend on xerces-c to avoid x86isms in bundled version
pkgname=sigil
2016-04-06 11:54:47 +00:00
pkgver=0.9.5
2015-12-18 00:33:38 +00:00
pkgrel=1
2015-05-20 00:53:47 +00:00
pkgdesc="WYSIWYG ebook editor"
arch=('i686' 'x86_64')
2015-11-16 19:08:20 +00:00
url="http://sigil-ebook.com/"
2015-05-20 00:53:47 +00:00
license=('GPL3')
2015-11-16 19:08:20 +00:00
depends=('qt5-webkit' 'python' 'hicolor-icon-theme' 'python-lxml' 'minizip' 'hunspell' 'xerces-c')
makedepends=('qt5-multimedia' 'qt5-tools' 'qt5-svg' 'cmake')
2015-05-20 00:53:47 +00:00
install=sigil.install
2015-11-16 19:08:20 +00:00
source=("Sigil-${pkgver}.zip::https://github.com/Sigil-Ebook/Sigil/archive/${pkgver}.zip")
2016-04-06 11:54:47 +00:00
md5sums=('d120bc1ab131a57464a95499c5407ab6')
2015-05-20 00:53:47 +00:00
build() {
cd "${srcdir}/Sigil-${pkgver}"
2015-11-16 19:08:20 +00:00
mkdir -p build
2015-05-20 00:53:47 +00:00
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
-DCMAKE_BUILD_TYPE=Release \
2015-11-16 19:08:20 +00:00
-DCMAKE_SKIP_RPATH=ON .. \
-DUSE_SYSTEM_LIBS=ON
2015-05-20 00:53:47 +00:00
make
}
package() {
cd "${srcdir}"/Sigil-${pkgver}/build
make install DESTDIR="${pkgdir}"
for _pic in 16 32 48 128 256; do
2015-11-16 19:08:20 +00:00
install -D -m 0644 ../src/Resource_Files/icon/app_icon_${_pic}.png \
2015-05-20 00:53:47 +00:00
"${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png
done
2015-11-16 19:08:20 +00:00
install -Dm644 ../src/Resource_Files/icon/app_icon_128.png \
2015-05-20 00:53:47 +00:00
"$pkgdir/usr/share/pixmaps/$pkgname.png"
}