[arch-commits] Commit in filelight/trunk (PKGBUILD filelight.install)

Andrea Scarpino andrea at archlinux.org
Mon Oct 12 16:15:37 UTC 2009


    Date: Monday, October 12, 2009 @ 12:15:36
  Author: andrea
Revision: 55263

upgpkg: filelight 1.9rc3-1
    kde4 port

Added:
  filelight/trunk/filelight.install
Modified:
  filelight/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   37 +++++++++++++++++++------------------
 filelight.install |   11 +++++++++++
 2 files changed, 30 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-10-12 16:15:15 UTC (rev 55262)
+++ PKGBUILD	2009-10-12 16:15:36 UTC (rev 55263)
@@ -1,28 +1,29 @@
 # $Id$
-# Maintainer: damir <damir at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
 # Contributor: Kritoke <kritoke at gamebox.net>
 
 pkgname=filelight
-pkgver=1.0
-pkgrel=3
+pkgver=1.9rc3
+pkgrel=1
 pkgdesc="A KDE program that creates a complex, but data-rich graphical representation of the files and directories on your computer."
-arch=("i686" "x86_64")
+arch=('i686' 'x86_64')
 url="http://methylblue.com/filelight/"
 license=('GPL2')
-depends=('kdelibs3')
-options=('libtool') # removing .la file breaks kparts and loading filelight module!
-source=("http://methylblue.com/filelight/packages/$pkgname-1.0.tar.bz2")
-md5sums=('aa885e53e09f40e7fdd371395140b957')
+depends=('kdelibs' 'qimageblitz' 'hicolor-icon-theme')
+makedepends=('cmake' 'automoc4')
+install=filelight.install
+source=("http://www.kde-apps.org/CONTENT/content-files/99561-$pkgname-${pkgver}.tgz")
+md5sums=('a75cb50bc0b7238507952fb7d1b8d8a8')
 
 build() {
-   cd $startdir/src/$pkgname-1.0
-   . /etc/profile.d/kde3.sh
-   if [ "$CARCH" = "x86_64" ]; then
-      # not the best way but gentoo patch didn't work
-      export CFLAGS="$CFLAGS -fPIC"
-      export CXXFLAGS="$CFLAGS"
-   fi
-   ./configure --prefix=/opt/kde --without-arts
-   make || return 1
-   make DESTDIR=$startdir/pkg install || return 1
+  cd ${srcdir}
+  mkdir build
+  cd build
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make || return 1
+  make DESTDIR=${pkgdir} install || return 1
 }

Added: filelight.install
===================================================================
--- filelight.install	                        (rev 0)
+++ filelight.install	2009-10-12 16:15:36 UTC (rev 55263)
@@ -0,0 +1,11 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}




More information about the arch-commits mailing list