diff options
Diffstat (limited to 'community-staging/sigil')
-rw-r--r-- | community-staging/sigil/PKGBUILD | 45 | ||||
-rw-r--r-- | community-staging/sigil/sigil.desktop | 10 | ||||
-rw-r--r-- | community-staging/sigil/sigil.install | 12 |
3 files changed, 67 insertions, 0 deletions
diff --git a/community-staging/sigil/PKGBUILD b/community-staging/sigil/PKGBUILD new file mode 100644 index 000000000..62c17c898 --- /dev/null +++ b/community-staging/sigil/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 60731 2011-12-17 10:21:12Z andrea $ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com> + +pkgname=sigil +pkgver=0.4.2 +pkgrel=3 +pkgdesc="A WYSIWYG ebook editor" +arch=('i686' 'x86_64') +url="http://code.google.com/p/sigil/" +license=('GPL3') +depends=('qtwebkit') +makedepends=('cmake') +install=sigil.install +source=("http://sigil.googlecode.com/files/Sigil-${pkgver}-Code.zip" + "${pkgname}.desktop") +md5sums=('ce27976254236f8b11b787fd05be9acb' + 'fef6aa492af487ccccd6b133635cee5a') + +build() { + cd "${srcdir}" + 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 +} diff --git a/community-staging/sigil/sigil.desktop b/community-staging/sigil/sigil.desktop new file mode 100644 index 000000000..4f3a14d20 --- /dev/null +++ b/community-staging/sigil/sigil.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Sigil +Comment=E-book reader and WYSIWYG editor +TryExec=sigil +Exec=sigil +Icon=sigil +Categories=Office; +Terminal=false +StartupNotify=false diff --git a/community-staging/sigil/sigil.install b/community-staging/sigil/sigil.install new file mode 100644 index 000000000..ec506fa93 --- /dev/null +++ b/community-staging/sigil/sigil.install @@ -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 +} |