# $Id: PKGBUILD 77435 2010-04-13 09:57:06Z ibiru $ # Maintainer : Ionut Biru # Contributor: Hugo Doria # Contributor: Andrea Scarpino pkgname=libtorrent-rasterbar pkgver=0.15.0 pkgrel=5 pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around" url="http://www.rasterbar.com/products/libtorrent/" arch=('i686' 'x86_64') license=('custom') depends=('boost>=1.41.0' 'python>=2.6') makedepends=('cmake') source=(http://libtorrent.googlecode.com/files/${pkgname}-${pkgver}.tar.gz) md5sums=('3f8253457557a3f4778fa18fa076c5c9') build() { cd ${srcdir}/${pkgname}-${pkgver} echo "add_definitions(-DTORRENT_USE_POSIX_MEMALIGN=1)" >> CMakeLists.txt cd "${srcdir}" mkdir build cd build cmake ../"${pkgname}-${pkgver}" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr make VERBOSE=1 || return 1 } package() { cd ${srcdir}/build make DESTDIR="${pkgdir}" install || return 1 install -D "${srcdir}/${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" }