From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/kmess/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ community/kmess/kmess.install | 11 +++++++++++ 2 files changed, 51 insertions(+) create mode 100644 community/kmess/PKGBUILD create mode 100644 community/kmess/kmess.install (limited to 'community/kmess') diff --git a/community/kmess/PKGBUILD b/community/kmess/PKGBUILD new file mode 100644 index 000000000..772815e49 --- /dev/null +++ b/community/kmess/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 91296 2013-05-20 21:10:18Z foutrelis $ +# Maintainer: +# Contributor: Mateusz Herych +# Contributor: Stefano Zamprogno + +pkgname=kmess +pkgver=2.0.6.2 +pkgrel=2 +pkgdesc="A MSN Messenger client for Linux" +arch=('i686' 'x86_64') +url='http://kmess.sourceforge.net/' +license=('GPL') +depends=('kdebase-lib') +makedepends=('automoc4' 'cmake' 'optipng') +optdepends=('cabextract: provides winks support') +install=${pkgname}.install +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-$pkgver.tar.bz2") +md5sums=('a2e57911713308bef81b9347135cc5dd') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Fix invalid PNG images to work with libpng 1.6 + find -name '*.png' -exec optipng -quiet -force -fix {} + +} + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd "${srcdir}"/build + make DESTDIR="${pkgdir}" install +} diff --git a/community/kmess/kmess.install b/community/kmess/kmess.install new file mode 100644 index 000000000..c0797237a --- /dev/null +++ b/community/kmess/kmess.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf