git » kio.git » commit f9c0d5c

Let's try to package KDE Frameworks 5

author Andrea Scarpino
2014-05-12 06:11:49 UTC
committer Andrea Scarpino
2014-05-12 06:11:49 UTC
parent 6c6d0618ff81a4d3f7c0e5fe9713eb678497635e

Let's try to package KDE Frameworks 5

PKGBUILD +37 -0
kio.install +11 -0

diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..3366301
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=kio
+pkgver=4.99.0
+pkgrel=1
+pkgdesc='KIO'
+arch=('i686' 'x86_64')
+url='https://projects.kde.org/projects/frameworks/kio'
+license=('LGPL')
+depends=('solid' 'karchive' 'kjobwidgets' 'kbookmarks' 'libxslt' 'kwallet'
+        'desktop-file-utils')
+makedepends=('extra-cmake-modules' 'kdoctools')
+groups=('kf5')
+install=kio.install
+source=("http://download.kde.org/unstable/frameworks/${pkgver}/${pkgname}-${pkgver}.tar.xz")
+md5sums=('7eafc35cc0bcfb247b7871dce93c8b63')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLIB_INSTALL_DIR=lib \
+    -DECM_MKSPECS_INSTALL_DIR=/usr/share/qt/mkspecs/modules \
+    -DBUILD_TESTING=OFF \
+    -DSYSCONF_INSTALL_DIR=/etc
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}
diff --git a/kio.install b/kio.install
new file mode 100644
index 0000000..e111ef9
--- /dev/null
+++ b/kio.install
@@ -0,0 +1,11 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}