You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
archzfs/zfs/PKGBUILD

49 lines
1.4 KiB

# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com>
# Contributor: Kyle Fuller <inbox at kylefuller dot co dot uk>
pkgname="zfs"
#
# This script doesn't use bash variables for the version number because AUR
# doesn't properly parse bash variables. We use a custom build script to
# automatically change the appropriate variables before building in a clean
# chroot environment (using systemd-ndspawn).
#
# The build script can be found at
# https://github.com/demizer/archzfs/blob/master/build.sh
#
pkgver=0.6.2_3.12.7
pkgrel=3
pkgdesc="Kernel modules for the Zettabyte File System."
depends=("spl=0.6.2_3.12.7-3" "zfs-utils" "linux=3.12.7-2")
makedepends=("linux-headers=3.12.7-2")
arch=("i686" "x86_64")
url="http://zfsonlinux.org/"
source=(http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-0.6.2.tar.gz)
groups=("archzfs")
md5sums=('0b183b0abdd5be287046ad9ce4f899fd')
license=("CDDL")
install=zfs.install
build() {
cd "$srcdir/zfs-0.6.2"
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--datadir=/usr/share \
--includedir=/usr/include \
--with-udevdir=/lib/udev \
--libexecdir=/usr/lib/zfs-0.6.2 \
--with-config=kernel
make
}
package() {
cd "$srcdir/zfs-0.6.2"
make DESTDIR="$pkgdir" install
# move module tree /lib -> /usr/lib
cp -r "$pkgdir"/{lib,usr}
rm -r "$pkgdir"/lib
}