2010-07-09 04:29:54 +08:00
|
|
|
#
|
|
|
|
# KDE SC 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>
|
|
|
|
|
|
|
|
pkgname=dbusmenu-qt-git
|
2010-10-20 01:18:47 +08:00
|
|
|
pkgver=20101019
|
2010-07-09 04:29:54 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A standalone library providing a way to import and export QMenu instances using the DBusMenu protocol."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('GPL')
|
|
|
|
depends=('qt' 'qjson')
|
|
|
|
makedepends=('git' 'cmake')
|
|
|
|
url="http://gitorious.org/dbusmenu/"
|
|
|
|
conflicts=('dbusmenu-qt')
|
|
|
|
provides=('dbusmenu-qt')
|
2010-10-20 01:18:47 +08:00
|
|
|
source=(http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz)
|
|
|
|
md5sums=(a4fa14066609b87935800f7a0d5077f4)
|
|
|
|
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
2010-07-09 04:29:54 +08:00
|
|
|
|
2010-10-20 01:18:47 +08:00
|
|
|
mksource() {
|
|
|
|
git clone git://gitorious.org/dbusmenu/dbusmenu-qt.git
|
|
|
|
pushd dbusmenu-qt
|
|
|
|
popd
|
|
|
|
tar -cvJf ${pkgname}-${pkgver}.tar.xz dbusmenu-qt/*
|
|
|
|
md5sum ${pkgname}-${pkgver}.tar.xz
|
|
|
|
}
|
2010-07-09 04:29:54 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir
|
2010-10-20 01:18:47 +08:00
|
|
|
|
|
|
|
mkdir $srcdir/dbusmenu-qt-build
|
2010-07-09 04:29:54 +08:00
|
|
|
|
2010-10-20 01:18:47 +08:00
|
|
|
cd $srcdir/dbusmenu-qt-build
|
2010-07-09 04:29:54 +08:00
|
|
|
|
2010-10-20 01:18:47 +08:00
|
|
|
cmake $startdir/src/dbusmenu-qt -DCMAKE_BUILD_TYPE=Release \
|
2010-07-09 04:29:54 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make || return 1
|
|
|
|
make DESTDIR=$pkgdir install || return 1
|
|
|
|
|
2010-10-20 01:18:47 +08:00
|
|
|
rm -rf $srcdir/dbusmenu-qt-build
|
2010-07-09 04:29:54 +08:00
|
|
|
}
|