Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Maintainer: bh <ang5t@gmx.net>
- #Contributor: lh <jarryson#gmail.com>
- pkgname=cairo-dock-bzr
- pkgver=651
- pkgrel=1
- pkgdesc="A cairo-based themeable dock app for a composited desktop"
- url="http://www.glx-dock.org/"
- license="GPL"
- arch=('i686' 'x86_64')
- depends=('librsvg' 'dbus' 'dbus-glib' 'gtkglext')
- makedepends=('bzr' 'intltool' 'perlxml' 'cmake')
- conflicts=('cairo-dock' 'cairo-dock-svn')
- provides=('cairo-dock')
- _bzrmod=cairo-dock-core
- _bzrtrunk=lp:cairo-dock-core
- build() {
- cd $srcdir
- msg "Connecting to the server...."
- if [ ! -d ./${_bzrmod} ]; then
- msg "Downloading the latest revision through a 'checkout --lightweight'...."
- bzr checkout --lightweight ${_bzrtrunk} -q -r ${pkgver}
- touch ${_bzrmod}/.bzr_checkout
- elif [ ! -f ./${_bzrmod}/.bzr_checkout ]; then
- msg "The branch of ${_bzrmod} will be moved to '${_bzrmod}_bak': you can remove it if you haven't added any modification...."
- mv ${_bzrmod} ${_bzrmod}_bak
- msg "Downloading the latest revision through a 'checkout --lightweight' and not a branch...."
- bzr checkout --lightweight ${_bzrtrunk} -q -r ${pkgver}
- touch ${_bzrmod}/.bzr_checkout
- else
- cd ${_bzrmod} && bzr up && cd ..
- fi
- msg "bzr checkout done."
- msg "Removing old build directory..."
- rm -rf $srcdir/$_bzrmod-build
- msg "Creating build directory..."
- cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build
- msg "Starting make..."
- cd $srcdir/$_bzrmod-build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_NOT_LIB64=yes
- make -j $(grep -c ^processor /proc/cpuinfo)
- make install DESTDIR=$startdir/pkg || return 1
- rm -rf $srcdir/$_bzrmod-build
- }
- package() {
- return 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement