updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / lxpanelx / PKGBUILD
blob40b8e8d20c69c3914954d628a89561d53cb7c213
1 # Contributor: Lobashev Vadim < admin at mind-x.org>
2 pkgname=lxpanelx
3 pkgver=4
4 pkgrel=1
5 pkgdesc="Lightweight X11 desktop panel. Fork by geekless from LOR."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/lxpanelx/"
8 license=('GPL')
9 depends=('alsa-lib' 'gtk2>=2.12.0' 'lxmenu-data' \
10          'menu-cache' 'startup-notification')
11 makedepends=('autoconf' 'automake' 'gcc' 'intltool' 'libtool' \
12              'make' 'pkgconfig' 'python' 'git')
13 options=('!libtool')
14 provides=('lxpanel')
15 conflicts=('lxpanel')
16 groups=('lxde-git')
17 source=('icon.patch')
18 md5sums=('1daebaab014dca5e056f3bf3fceac19c')
20 _svntrunk="http://lxpanelx.googlecode.com/svn/trunk/"
21 _svnmod="lxpanelx"
23 build() {
24   cd ${srcdir}
26   #####
27   if [ -d $_svnmod/.svn ]; then
28     (cd $_svnmod && svn up -r $pkgver)
29   else
30     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31   fi
32   msg "SVN checkout done or server timeout"
33   
34   msg "Creating temporary build directory..."
35   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build || return 1
36   cd "${_svnmod}-build" || return 1
38   msg "Starting make..."
39   #####
41   cd $srcdir/$_svnmod-build
43   # Disable the building of man
44   sed -i -e 's:po man:po:' Makefile.am || return 1
45   sed -i -e 's:man/Makefile::' configure.ac || return 1
46   
47   msg "Applying patch for a fixed icon size"
48   cd ${srcdir}/$_svnmod-build
49   patch -Np1 -i ${srcdir}/icon.patch || return 1
50   
51   # Generating building system
52   ./autogen.sh || return 1
54   ./configure --prefix=/usr \
55               --sysconfdir=/etc \
56               --localstatedir=/var \
57               --disable-static
59   make || return 1
60   make DESTDIR=${pkgdir} install || return 1
61   
62   msg "Removing build directory..."
63   cd ${srcdir}
64   rm -Rf ${_svnmod}-build