desktop/tools-pkg-bluedevil-git/PKGBUILD
2010-08-01 00:01:52 +00:00

60 lines
1.8 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=bluedevil-git
pkgver=20100731
pkgrel=1
pkgdesc='The new bluetooth stack for KDE, its composed of: KCM, KDED, KIO, Library and some other small applications'
arch=('i686' 'x86_64')
url="http://gitorious.org/bluedevil"
license=('GPL')
depends=('kdelibs' 'libbluedevil' 'obex-data-server' 'obexd-client') # kdebase-workspace
makedepends=('cmake' 'automoc4' 'git')
provides=(bluedevil)
conflicts=(bluedevil)
source=(01_no_useless_linking.diff
02_no_useless_dependencies.diff
03_libbluedevilaction_is_private.diff)
md5sums=(9af5eb3f58177e2c59b99c47e27446f4 # 01_no_useless_linking.diff
be69420695ae4c3f8846b764e461c428 # 02_no_useless_dependencies.diff
a02ae32a177ed53bcb445771e831995a) # 03_libbluedevilaction_is_private.diff
_gitroot="git://gitorious.org/bluedevil/bluedevil.git"
_gitname="bluedevil"
build(){
cd ${srcdir}
if [[ -d $_gitname ]]; then
(cd $_gitname && git pull origin)
else
git clone $_gitroot $_gitname
fi
mkdir -p $_gitname-build
cp -R $_gitname/* $_gitname-build
cd $_gitname-build
msg "add patches (it is stupied to patch git ...)"
patch -Np1 -i ${startdir}/01_no_useless_linking.diff
patch -Np1 -i ${startdir}/02_no_useless_dependencies.diff
patch -Np1 -i ${startdir}/03_libbluedevilaction_is_private.diff
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd ${srcdir}/$_gitname-build
make DESTDIR=${pkgdir} install
rm -R ${srcdir}/$_gitname-build
}