SHARE
TWEET

rmlint-git-pkgbuild

a guest Dec 18th, 2014 127 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: SahibBommelig <sahib@online.de>
  2. # rmlint PKBUILD for ArchLinux
  3. pkgname=rmlint-git
  4. pkgver=20140626
  5. pkgrel=1
  6. pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes"
  7. arch=('i686' 'x86_64')
  8. depends=(glibc clang)
  9. provides=('rmlint')
  10. conflicts=('rmlint')
  11. makedepends=('git')
  12. license=('GPL3')
  13. url=("https://github.com/sahib/rmlint")
  14.  
  15. _gitroot="https://github.com/sahib/rmlint.git"
  16. _gitname="rmlint"
  17.  
  18. build()
  19. {
  20.     cd ${srcdir}/
  21.  
  22.     msg "Connecting to the GIT server...."
  23.     if [[ -d ${srcdir}/${_gitname} ]] ; then
  24.         cd ${_gitname}
  25.         git pull origin --depth 1
  26.     msg "Updating existing repo..."
  27.     else
  28.         git clone --depth=1 ${_gitroot}
  29.     fi
  30.    
  31.     msg "GIT checkout done."
  32.     cd ${srcdir}/${_gitname}
  33.    
  34.     scons -j4
  35.     scons
  36. }
  37.  
  38. package() {
  39.   cd "$srcdir/${_gitname}"
  40.   scons --prefix=$pkgdir install
  41. }
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