updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / lxpanelx-svn / PKGBUILD
blobabcfba3625ca28c3681cb1bbd25bbd739ae8d3ac
1 # Contributor: Lobashev Vadim < admin at mind-x.org>
2 pkgname=lxpanelx-svn
3 pkgver=133
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' 'subversion')
13 options=('!libtool')
14 provides=('lxpanel')
15 conflicts=('lxpanel')
17 _svntrunk="http://lxpanelx.googlecode.com/svn/trunk/"
18 _svnmod="lxpanelx"
20 build() {
21   cd ${srcdir}
23   #####
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
29   msg "SVN checkout done or server timeout"
30   
31   msg "Creating temporary build directory..."
32   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build || return 1
33   cd "${_svnmod}-build" || return 1
35   msg "Starting make..."
36   #####
38   cd $srcdir/$_svnmod-build
40   # Disable the building of man
41   sed -i -e 's:po man:po:' Makefile.am || return 1
42   sed -i -e 's:man/Makefile::' configure.ac || return 1
43   
44   msg "Applying patch for a fixed icon size"
45   cd ${srcdir}/$_svnmod-build
46     
47   # Generating building system
48   ./autogen.sh || return 1
50   ./configure --prefix=/usr \
51               --sysconfdir=/etc \
52               --localstatedir=/var \
53               --disable-static
55   make || return 1
56   make DESTDIR=${pkgdir} install || return 1
57   
58   msg "Removing build directory..."
59   cd ${srcdir}
60   rm -Rf ${_svnmod}-build