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

archlinux-zfs-linux3.5-PKGBUILD

By: schreiberstein on Jul 25th, 2012  |  syntax: None  |  size: 1.13 KB  |  views: 95  |  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. pkgname=zfs
  2. pkgver=0.6.0_rc9
  3. pkgrel=3
  4. arch=('i686' 'x86_64')
  5. pkgdesc="Native ZFS for Linux"
  6. url="http://zfsonlinux.org/"
  7. _kernver=`pacman -Q linux | cut -d " " -f 2 | cut -d "-" -f 1`
  8. depends=("linux=${_kernver}" "zfs-utils=${pkgver}" 'util-linux' "spl=$pkgver")
  9. makedepends=("linux-headers=${_kernver}")
  10. source=(http://github.com/downloads/zfsonlinux/zfs/zfs-${pkgver//_/-}.tar.gz
  11.         preempt.patch
  12.         http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-fs/zfs/files/zfs-0.6.0_rc9-linux-3.5-support.patch)
  13. md5sums=('f41082bd7073198cabf37e6e54359a07'
  14.          '9a5dc8b83c6b523fd2bd0be842278e2c'
  15.          'e0277bdf83d94b101d18d0355484182c')
  16. license=('CDDL')
  17. install=zfs.install
  18.  
  19. build() {
  20.   cd "$srcdir/$pkgname-${pkgver//_/-}"
  21.   patch -p1 -i $srcdir/preempt.patch
  22.   patch -p1 -i $srcdir/zfs-0.6.0_rc9-linux-3.5-support.patch
  23.   ./autogen.sh
  24.   ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc --with-config=kernel
  25.   make
  26. }
  27.  
  28. package() {
  29.   cd "$srcdir/$pkgname-${pkgver//_/-}"
  30.   make DESTDIR="$pkgdir" install
  31.  
  32.   # move module tree /lib -> /usr/lib
  33.   cp -r "$pkgdir/lib" "$pkgdir/usr"
  34.   rm -r "$pkgdir/lib"
  35. }