updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / apper-git / PKGBUILD
blobc56ebc05dc6149d24b80d06da4cebcd7b767117d
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=apper-git
4 pkgver=20110504
5 pkgrel=1
6 pkgdesc='KDE4 PackageKit frontend (previous name Kpackagekit)'
7 arch=('i686' 'x86_64')
8 url="http://dantti.wordpress.com/"
9 license=('GPL')
10 depends=('kdelibs>=4.6.0' 'kdebase-workspace>=4.6.0' 'packagekit-qt2>=0.6.14')
11 makedepends=('cmake' 'subversion' 'automoc4')
12 provides=(apper)
13 conflicts=(apper)
14 source=()
15 md5sums=()
17 _gitroot="git://anongit.kde.org/apper.git"
18 _gitname="apper"
20 build(){
21   cd ${srcdir}
23   if [[ -d $_gitname ]]; then
24         (cd $_gitname && git pull origin)
25   else
26         git clone $_gitroot $_gitname
27   fi
29   mkdir -p build
30   cd build
32   cmake ../${_gitname} \
33     -DCMAKE_BUILD_TYPE=Release \
34     -DCMAKE_INSTALL_PREFIX=/usr
35   make
38 package() {
39   cd ${srcdir}/build
40   make DESTDIR=${pkgdir} install