summaryrefslogtreecommitdiff
path: root/staging/kdegraphics-mobipocket
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-24 23:14:53 +0000
committerroot <root@rshg054.dnsready.net>2011-11-24 23:14:53 +0000
commit5894dd675f4bd3ba296d262fae99b3b87a0f87fd (patch)
treea39397b8475e7ca9c5d6950d607183669edfac53 /staging/kdegraphics-mobipocket
parent1e1e4927b05d9b242bfe83794e3a98ab2c8f79ef (diff)
Thu Nov 24 23:14:53 UTC 2011
Diffstat (limited to 'staging/kdegraphics-mobipocket')
-rw-r--r--staging/kdegraphics-mobipocket/PKGBUILD32
-rw-r--r--staging/kdegraphics-mobipocket/kdegraphics-mobipocket.install11
2 files changed, 43 insertions, 0 deletions
diff --git a/staging/kdegraphics-mobipocket/PKGBUILD b/staging/kdegraphics-mobipocket/PKGBUILD
new file mode 100644
index 000000000..5efeab8f6
--- /dev/null
+++ b/staging/kdegraphics-mobipocket/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 143179 2011-11-23 08:16:37Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=kdegraphics-mobipocket
+pkgver=4.7.80
+pkgrel=1
+pkgdesc="A collection of plugins to handle mobipocket files"
+url="http://kde.org/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+depends=('kdelibs')
+makedepends=('cmake' 'automoc4')
+replaces=('kdegraphics-libs')
+conflicts=('kdegraphics-libs')
+install=${pkgname}.install
+source=("http://download.kde.org/unstable/${pkgver}/src/mobipocket-${pkgver}.tar.bz2")
+sha1sums=('1da0a6d283b0ee361afeb27b0e03901581b86e8a')
+
+build() {
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../mobipocket-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}"/build
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/staging/kdegraphics-mobipocket/kdegraphics-mobipocket.install b/staging/kdegraphics-mobipocket/kdegraphics-mobipocket.install
new file mode 100644
index 000000000..660593cf5
--- /dev/null
+++ b/staging/kdegraphics-mobipocket/kdegraphics-mobipocket.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}