Date: Sunday, February 24, 2013 @ 21:14:27 Author: andrea Revision: 84818
archrelease: copy trunk to community-staging-x86_64 Added: sigil/repos/community-staging-x86_64/ sigil/repos/community-staging-x86_64/PKGBUILD (from rev 84817, sigil/trunk/PKGBUILD) sigil/repos/community-staging-x86_64/sigil.install (from rev 84817, sigil/trunk/sigil.install) ---------------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ sigil.install | 12 ++++++++++++ 2 files changed, 61 insertions(+) Copied: sigil/repos/community-staging-x86_64/PKGBUILD (from rev 84817, sigil/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2013-02-24 20:14:27 UTC (rev 84818) @@ -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-x86_64/sigil.install (from rev 84817, sigil/trunk/sigil.install) =================================================================== --- community-staging-x86_64/sigil.install (rev 0) +++ community-staging-x86_64/sigil.install 2013-02-24 20:14:27 UTC (rev 84818) @@ -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 +}