diff options
author | root <root@rshg054.dnsready.net> | 2011-10-25 23:14:56 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-25 23:14:56 +0000 |
commit | d03e905f54857600b3c36af9b221c34ccb11074f (patch) | |
tree | 6456a06bc5bed5a6083f02bb468392dc6ba6337e /community-testing/sigil | |
parent | 0d7bab226067a44a9f1b978924e8201a3fa60764 (diff) |
Tue Oct 25 23:14:56 UTC 2011
Diffstat (limited to 'community-testing/sigil')
-rw-r--r-- | community-testing/sigil/PKGBUILD | 45 | ||||
-rwxr-xr-x | community-testing/sigil/sigil.desktop | 10 | ||||
-rw-r--r-- | community-testing/sigil/sigil.install | 12 |
3 files changed, 67 insertions, 0 deletions
diff --git a/community-testing/sigil/PKGBUILD b/community-testing/sigil/PKGBUILD new file mode 100644 index 000000000..934bbbad7 --- /dev/null +++ b/community-testing/sigil/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 57253 2011-10-24 20:34:33Z 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-testing/sigil/sigil.desktop b/community-testing/sigil/sigil.desktop new file mode 100755 index 000000000..4f3a14d20 --- /dev/null +++ b/community-testing/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-testing/sigil/sigil.install b/community-testing/sigil/sigil.install new file mode 100644 index 000000000..ec506fa93 --- /dev/null +++ b/community-testing/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 +} |