desktop/tools-pkg-libbluedevil-git/PKGBUILD

49 lines
1.0 KiB
Bash
Raw Normal View History

2010-07-29 07:43:25 +08:00
#
# 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=libbluedevil-git
2010-07-30 01:55:42 +08:00
pkgver=20100728
2010-07-29 07:43:25 +08:00
pkgrel=1
pkgdesc='A Qt wrapper for bluez used in the new KDE bluetooth stack'
arch=('i686' 'x86_64')
url="http://gitorious.org/libbluedevil"
license=('GPL')
depends=('qt' 'bluez')
makedepends=('cmake' 'git')
provides=("libbluedevil")
conflicts=("libbluedevil")
source=()
md5sums=()
_gitroot="git://gitorious.org/libbluedevil/libbluedevil.git"
_gitname="libbluedevil"
build(){
cd ${srcdir}
if [[ -d $_gitname ]]; then
(cd $_gitname && git pull origin)
else
git clone $_gitroot $_gitname
fi
mkdir build
cd build
cmake ../${_gitname} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}