desktop/support-pkg-dbusmenu-qt-git/PKGBUILD

43 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2013-12-18 02:36:04 +08:00
2013-12-18 02:41:12 +08:00
# Maintainer (i686): Phil Miller <philm@chakra-project[dog]org>
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
pkgname=dbusmenu-qt-git
pkgver=20101019
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')
source=(http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz)
md5sums=(a4fa14066609b87935800f7a0d5077f4)
# create tarball: source PKGBUILD && mksource
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
}
build() {
cd $srcdir
2010-11-09 16:14:53 +08:00
mkdir -p $srcdir/dbusmenu-qt-build
cd $srcdir/dbusmenu-qt-build
cmake ${srcdir}/dbusmenu-qt -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
make DESTDIR=$pkgdir install
rm -rf $srcdir/dbusmenu-qt-build
}