Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

aur multipath-tools-git pkgbuild

By: a guest on Jun 1st, 2012  |  syntax: Bash  |  size: 1.01 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Alexander Rødseth <rodseth@gmail.com>
  2. pkgname=multipath-tools-git
  3. pkgver=20120601
  4. pkgrel=1
  5. pkgdesc="Tools to drive the Device Mapper multipathing driver (contains kpartx)"
  6. url="http://christophe.varoqui.free.fr/"
  7. arch=('x86_64' 'i686')
  8. license=('GPL2')
  9. depends=('libaio' 'device-mapper')
  10. makedepends=('git')
  11. options=(!emptydirs)
  12. _gitroot="http://git.opensvc.com/multipath-tools/.git"
  13. #_gitroot="http://kernel.org/pub/scm/linux/storage/multipath-tools/.git"
  14. _gitname="multipath-tools"
  15.  
  16. build() {
  17.   cd "$srcdir"
  18.  
  19.   msg "Connecting to github.com GIT server...."
  20.   if [ -d "$_gitname" ] ; then
  21.     cd "$_gitname" && git pull origin
  22.     msg "The local files are updated."
  23.         cd -
  24.   else
  25.     git clone "$_gitroot"
  26.   fi
  27.   msg "GIT checkout done or server timeout"
  28.   cd "$_gitname"
  29.  
  30.   make
  31. }
  32.  
  33. package() {
  34.   cd "$srcdir/$_gitname"
  35.  
  36.   make LIB="/usr/lib" DESTDIR="$pkgdir" install
  37.   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  38. }
  39.  
  40. # vim:set ts=2 sw=2 et: