Date: Sunday, February 24, 2013 @ 21:14:37 Author: andrea Revision: 84819
archrelease: copy trunk to community-staging-i686 Added: sigil/repos/community-staging-i686/ sigil/repos/community-staging-i686/PKGBUILD (from rev 84818, sigil/trunk/PKGBUILD) sigil/repos/community-staging-i686/sigil.install (from rev 84818, sigil/trunk/sigil.install) ---------------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ sigil.install | 12 ++++++++++++ 2 files changed, 61 insertions(+) Copied: sigil/repos/community-staging-i686/PKGBUILD (from rev 84818, sigil/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2013-02-24 20:14:37 UTC (rev 84819) @@ -0,0 +1,49 @@ +# $Id$ +# Maintainer: Giovanni Scafora <giova...@archlinux.org> +# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com> + +pkgname=sigil +pkgver=0.7.0 +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-addons' 'qt5-declarative' 'qt5-tools' 'cmake' 'gendesk' 'boost') +install=sigil.install +source=("http://sigil.googlecode.com/files/Sigil-${pkgver}-Code.zip") +md5sums=('06ba5ace506e01adf4a37534fa276cec') + +build() { + cd "${srcdir}" + gendesk -n + + 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" +} Copied: sigil/repos/community-staging-i686/sigil.install (from rev 84818, sigil/trunk/sigil.install) =================================================================== --- community-staging-i686/sigil.install (rev 0) +++ community-staging-i686/sigil.install 2013-02-24 20:14:37 UTC (rev 84819) @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}