summaryrefslogtreecommitdiff
path: root/community-staging/sigil
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-23 23:14:59 +0000
committerroot <root@rshg054.dnsready.net>2011-10-23 23:14:59 +0000
commitc0bc46632845dfc241d3290d8d3193287eaeb02e (patch)
tree15e467e4985d599a312014b62fd555cbc4cdffc7 /community-staging/sigil
parent789905b5e6b809a564832ba85b842988405e7375 (diff)
Sun Oct 23 23:14:58 UTC 2011
Diffstat (limited to 'community-staging/sigil')
-rw-r--r--community-staging/sigil/PKGBUILD45
-rwxr-xr-xcommunity-staging/sigil/sigil.desktop10
-rw-r--r--community-staging/sigil/sigil.install12
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..0b61ea9bf
--- /dev/null
+++ b/community-staging/sigil/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 57149 2011-10-22 15:18:04Z andrea $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
+
+pkgname=sigil
+pkgver=0.4.2
+pkgrel=2
+pkgdesc="A WYSIWYG ebook editor"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/sigil/"
+license=('GPL3')
+depends=('qt' '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 100755
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
+}