updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / kvpm-svn / PKGBUILD
blob31a7884309f1a74ac4f6937f2de33bdbf8e9d9c8
1 # Maintainer: laloch <laloch@atlas.cz>
2 pkgname=kvpm-svn
3 _pkgname=kvpm
4 pkgver=766
5 pkgrel=1
6 pkgdesc='KDE4 front end for Linux LVM and Gnu parted'
7 url='http://kvpm.sourceforge.net'
8 arch=('i686' 'x86_64')
9 license=('GPL3')
10 depends=('kdebase-runtime' 'lvm2')
11 makedepends=('cmake' 'automoc4' 'subversion')
12 conflicts=('kvpm')
13 provides=('kvpm')
14 source=()
15 md5sums=()
16 install=${pkgname}.install
18 _svntrunk='https://kvpm.svn.sourceforge.net/svnroot/kvpm/trunk'
19 _svnmod='kvpm'
21 build() {
22   cd ${srcdir}
24   if [ -d ${_svnmod} ]; then
25     svn up -r ${pkgver}
26   else
27     svn co ${_svntrunk} -r ${pkgver} ${_svnmod}
28   fi
29   msg2 'SVN checkout done or server timeout'
31   rm -rf ${srcdir}/${_svnmod}-build
32   mkdir ${srcdir}/${_svnmod}-build
33   cd ${srcdir}/${_svnmod}-build
34   
35   msg2 'Starting make...'
36   cmake ${srcdir}/${_svnmod} \
37     -DKDE4_ENABLE_HTMLHANDBOOK=OFF \
38     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
39     -DCMAKE_BUILD_TYPE=Release
40   make
41   echo "[Desktop Entry]
42 GenericName=LVM Frontend
43 Name=KVPM
44 Comment=KDE Volume Partition Manager
45 Exec=kdesu kvpm
46 Icon=kvpm
47 X-KDE-SubstituteUID=true
48 Type=Application
49 Categories=System;KDE;" > ${srcdir}/${_svnmod}-build/${_pkgname}.desktop
52 package() {
53   cd ${srcdir}/${_svnmod}-build
54   make DESTDIR=${pkgdir} install
55   install -Dm 644 ${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop