git » ktorrent.git » commit a84a8c4

upgpkg: 3.1.1-1

author Pierre Schmitz
2008-07-24 09:57:13 UTC
committer Pierre Schmitz
2008-07-24 09:57:13 UTC
parent 94c60379c1baad40837142111f8e9cf9d04953b4

upgpkg: 3.1.1-1

PKGBUILD +13 -14

diff --git a/PKGBUILD b/PKGBUILD
index 2cca346..ef381bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,26 +2,25 @@
 # Contributor: Georg Grabler <ggrabler@gmail.com>
 
 pkgname=ktorrent
-pkgver=2.2.7
+pkgver=3.1.1
 pkgrel=1
 pkgdesc="A BitTorrent program for KDE"
 arch=('i686' 'x86_64')
 url="http://ktorrent.org"
 license=('GPL')
-depends=('kdelibs' 'gmp')
+depends=('kdelibs>4' 'gmp' 'qca')
 makedepends=('autoconf' 'perl')
 source=(http://ktorrent.org/downloads/$pkgver/${pkgname}-${pkgver}.tar.bz2)
-options=('libtool') # needs .la files for plugins
+options=('libtool')
+md5sums=('59596d7fc3b49781d0a92a39cd913f8b')
 
 build() {
-    export MAKEFLAGS="-j1"
-    cd $startdir/src/$pkgname-$pkgver
-
-    # Build!
-    make -f admin/Makefile.common
-    ./configure --prefix=/opt/kde
-    make || return 1
-    make DESTDIR=$startdir/pkg install
-}
-
-md5sums=('99bd7110aeae72be1a9704c42532dcaf')
+	cd $srcdir
+	mkdir build
+	cd build
+	cmake ../${pkgname}-${pkgver} \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_INSTALL_PREFIX=/usr
+	make
+	make DESTDIR=$pkgdir install
+}
\ No newline at end of file