updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / kmldonkey / PKGBUILD
blob7ca56bdf0a9cfc688762a60d0f244f26cab03498
1 # Maintainer: A Rojas <nqn1976 @ gmail.com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
5 pkgname=kmldonkey
6 pkgver=2.0.7
7 # _kdever=4.4.0
8 pkgrel=2
9 pkgdesc="An MLDonkey frontend for KDE"
10 arch=('i686' 'x86_64')
11 url='http://userbase.kde.org/KMLDonkey'
12 license=('GPL')
13 depends=('kdebase-runtime' 'mldonkey')
14 makedepends=('cmake' 'automoc4')
15 optdepends=('kdebase-workspace: to use the plasma applet')
16 install="${pkgname}.install"
17 source=("https://api.opensuse.org:443/public/source/home:eduardhc/${pkgname}-kde4/${pkgname}-${pkgver}.tar.bz2" "ftp://ftp.kde.org/pub/kde/stable/extragear/${pkgname}-2.0.2-kde4.4.0.tar.bz2")
18 md5sums=('52062ca60b3b449c82e9db0bad1bc31c'
19          '40ae039dc01a45807111c2d0023eeaa6')
21 build() {
22   cd ${srcdir}
23  # add translations
24   mv ${pkgname}-2.0.2-kde4.4.0/po ${pkgname}-${pkgver}/
25   echo "find_package(Msgfmt REQUIRED)" >> ${pkgname}-${pkgver}/CMakeLists.txt
26   echo "find_package(Gettext REQUIRED)" >> ${pkgname}-${pkgver}/CMakeLists.txt
27   echo "add_subdirectory( po )" >> ${pkgname}-${pkgver}/CMakeLists.txt
28   mkdir build
29   cd build
30   cmake ../${pkgname}-${pkgver} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
31   make
34 package() {
35   cd ${srcdir}/build
36   make DESTDIR=${pkgdir} install