desktop/ktorrent/PKGBUILD
2014-06-24 12:26:51 -04:00

44 lines
997 B
Bash

#
# Chakra Package
#
# Maintainer:
# Drake Justice <djustice@chakraos.org>
pkgname=ktorrent
pkgver=4.3.1
pkgrel=2
pkgdesc="A powerful BitTorrent client for KDE"
arch=('i686' 'x86_64')
url='http://ktorrent.pwsp.net/'
license=('GPL2')
depends=('libktorrent' 'kdebase-runtime' 'taglib')
makedepends=('automoc4' 'cmake' 'boost' 'kdebase-workspace')
install=${pkgname}.install
source=("http://ktorrent.pwsp.net/downloads/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
'kde412.patch'
'kdebug-315239.patch')
sha1sums=('6b56bab48dd07805225c3d4d5d5d1c4c1def241e'
'f2c0e05913b2f21b593818e2cd3547d09f86be86'
'd247aecbbbbbda3eef8dcb51d3db244b1c845f85')
prepare() {
mkdir build
cd ${pkgname}-${pkgver}
patch -p1 -i "${srcdir}"/kde412.patch
patch -p1 -i "${srcdir}"/kdebug-315239.patch
}
build() {
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}