summaryrefslogtreecommitdiff
path: root/community/sigil
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/sigil
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/sigil')
-rw-r--r--community/sigil/PKGBUILD48
-rwxr-xr-xcommunity/sigil/sigil.desktop10
-rw-r--r--community/sigil/sigil.install12
3 files changed, 70 insertions, 0 deletions
diff --git a/community/sigil/PKGBUILD b/community/sigil/PKGBUILD
new file mode 100644
index 000000000..612d07486
--- /dev/null
+++ b/community/sigil/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 37601 2011-01-15 09:55:00Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
+
+pkgname=sigil
+_pkgname=Sigil
+pkgver=0.3.4
+pkgrel=1
+pkgdesc="A WYSIWYG ebook editor"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/sigil/"
+license=('GPL3')
+depends=('qt')
+makedepends=('cmake')
+install=sigil.install
+source=(http://${pkgname}.googlecode.com/files/${_pkgname}-${pkgver}-Code.zip
+ ${pkgname}.desktop)
+md5sums=('6f83a8ee12d6f5918fe50b8314e63760'
+ 'fef6aa492af487ccccd6b133635cee5a')
+
+build() {
+ cd ${_pkgname}-${pkgver}-Code
+
+ 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 .. || return 1
+
+ make || return 1
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}-Code/build
+
+ make install DESTDIR="${pkgdir}" || return 1
+
+ install -d -m 0755 "${pkgdir}"/usr/share/applications || return 1
+ install -m 0644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications || return 1
+
+ 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 || return 1
+ done
+}
diff --git a/community/sigil/sigil.desktop b/community/sigil/sigil.desktop
new file mode 100755
index 000000000..4f3a14d20
--- /dev/null
+++ b/community/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/sigil/sigil.install b/community/sigil/sigil.install
new file mode 100644
index 000000000..ec506fa93
--- /dev/null
+++ b/community/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
+}