SHARE
TWEET

leechcraft-git

a guest Jun 19th, 2011 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=leechcraft-git
  2. pkgver=20110619
  3. pkgrel=1
  4. pkgdesc="Opensource network client providing a full-featured web browser, BitTorrent client and much more."
  5. arch=('i686' 'x86_64')
  6. url="http://leechcraft.org"
  7. license=('GPL3')
  8. depends=('qt>=4.6' 'libtorrent-rasterbar>=0.15.0' 'phonon' 'qross' 'qjson' 'qscintilla' 'qxmpp-leechcraft-git' 'curl')
  9. makedepends=('gcc' 'boost' 'make' 'cmake' 'git')
  10. conflicts=(leechcraft)
  11. provides=(leechcraft)
  12. replaces=(leechcraft)
  13. install=leechcraft.install
  14.  
  15. _gitname=leechcraft
  16. _gitroot=git://github.com/0xd34df00d/leechcraft.git
  17.  
  18.  
  19. build() {
  20.   cd ${srcdir}
  21.  
  22.   msg "Connecting to GIT server...."
  23.   if [ -d ${_gitname} ] ; then
  24.     cd ${_gitname} && git pull origin
  25.     msg "The local files are updated."
  26.     cd ${srcdir}
  27.   else
  28.     git clone ${_gitroot} ${_gitname}
  29.   fi
  30.   msg "GIT checkout done or server timeout"
  31.  
  32.   msg "Starting make..."
  33.  
  34.   cd ${srcdir}
  35.   rm -rf ${_gitname}-build
  36.   mkdir ${_gitname}-build
  37.   cd ${_gitname}-build
  38.  
  39.   msg "Building ..."
  40.  
  41.   msg "Apply ArchLinux hacks for build..."
  42.   _git_version=`(cd ${srcdir}/${_gitname} && git describe | awk '{print $1}')`
  43.  
  44.   cmake ${srcdir}/${_gitname}/src \
  45.     -DLEECHCRAFT_VERSION="${_git_version}" \
  46.     -DCMAKE_INSTALL_PREFIX=/usr \
  47.     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  48.     -DENABLE_PYLC:BOOL=False \
  49.     -DENABLE_AZOTH=TRUE \
  50.     -DENABLE_SECMAN=TRUE \
  51.     -DENABLE_LACKMAN=TRUE \
  52.     -DENABLE_POPISHU=TRUE \
  53.     -DENABLE_GMAILNOTIFIER=TRUE \
  54.     -DENABLE_ADVANCEDNOTIFICATIONS=TRUE \
  55.  
  56.   make DESTDIR=$pkgdir install
  57.  
  58.   install -Dm 644 $srcdir/${_gitname}/src/resources/images/leechcraft.svg \
  59.               $pkgdir/usr/share/pixmaps/leechcraft.svg
  60.  
  61.  
  62.   install -Dm 644 $srcdir/${_gitname}/src/freedesktop/leechcraft.desktop \
  63.               $pkgdir/usr/share/applications/leechcraft.desktop || return 1
  64.  
  65.   rm -rf ${_gitname}-build
  66. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top