From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/sigil/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 community/sigil/PKGBUILD (limited to 'community/sigil/PKGBUILD') diff --git a/community/sigil/PKGBUILD b/community/sigil/PKGBUILD new file mode 100644 index 000000000..dfc11299f --- /dev/null +++ b/community/sigil/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 94050 2013-07-13 12:37:15Z svenstaro $ +# Maintainer: Giovanni Scafora +# Contributor: Larry Hajali + +pkgname=sigil +pkgver=0.7.2 +pkgrel=2 +pkgdesc="WYSIWYG ebook editor" +arch=('i686' 'x86_64') +url="http://code.google.com/p/sigil/" +license=('GPL3') +depends=('qt5-webkit' 'boost-libs') +makedepends=('qt5-tools' 'qt5-svg' 'cmake' 'gendesk' 'boost') +install=sigil.install +source=("http://sigil.googlecode.com/files/Sigil-${pkgver}-Code.zip") +md5sums=('540745983db57a2150cc2f4057455b19') + +build() { + cd "${srcdir}" + gendesk -n "$startdir"/PKGBUILD + + mkdir 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 .. + + make +} + +package() { + cd "${srcdir}"/build + make install DESTDIR="${pkgdir}" + + install -d -m 0755 "${pkgdir}"/usr/share/applications + install -m 0644 "${srcdir}"/${pkgname}.desktop \ + "${pkgdir}"/usr/share/applications + + for _pic in 16 32 48 128 256; do + install -D -m 0644 ../src/Sigil/Resource_Files/icon/app_icon_${_pic}.png \ + "${pkgdir}"/usr/share/icons/hicolor/${_pic}x${_pic}/apps/${pkgname}.png + done + install -Dm644 ../src/Sigil/Resource_Files/icon/app_icon_128.png \ + "$pkgdir/usr/share/pixmaps/$pkgname.png" +} -- cgit v1.2.3-54-g00ecf