Date: Saturday, March 26, 2016 @ 22:15:13
  Author: arojas
Revision: 262597

Add KF5 version of kfloppy

Added:
  kfloppy/
  kfloppy/kde-unstable/
  kfloppy/kde-unstable/PKGBUILD
  kfloppy/kde-unstable/kfloppy.install

-----------------+
 PKGBUILD        |   39 +++++++++++++++++++++++++++++++++++++++
 kfloppy.install |   12 ++++++++++++
 2 files changed, 51 insertions(+)

Added: kfloppy/kde-unstable/PKGBUILD
===================================================================
--- kfloppy/kde-unstable/PKGBUILD                               (rev 0)
+++ kfloppy/kde-unstable/PKGBUILD       2016-03-26 21:15:13 UTC (rev 262597)
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 261475 2016-03-15 10:26:40Z arojas $
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Maintainer: Antonio Rojas <aro...@archlinux.org>
+# Contributor: Andrea Scarpino <and...@archlinux.org>
+
+pkgname=kfloppy
+pkgver=16.03.80
+pkgrel=1
+pkgdesc='Floppy Formatter'
+url='http://kde.org/applications/utilities/kfloppy/'
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+depends=(kdelibs4support hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools)
+conflicts=(kdeutils-kfloppy)
+replaces=(kdeutils-kfloppy)
+groups=(kde-applications kdeutils)
+install=$pkgname.install
+source=("http://download.kde.org/unstable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz";)
+sha1sums=('53e48b94a207f48f76bb7f23271b817ad70c61d0')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Added: kfloppy/kde-unstable/kfloppy.install
===================================================================
--- kfloppy/kde-unstable/kfloppy.install                                (rev 0)
+++ kfloppy/kde-unstable/kfloppy.install        2016-03-26 21:15:13 UTC (rev 
262597)
@@ -0,0 +1,12 @@
+post_install() {
+       xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-desktop-database -q
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       post_install
+}

Reply via email to