mirror of https://github.com/archzfs/archzfs
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.
70 lines
2.0 KiB
70 lines
2.0 KiB
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com>
|
|
# Contributor: Kyle Fuller <inbox at kylefuller dot co dot uk>
|
|
#
|
|
# This PKGBUILD was generated by the archzfs build scripts located at
|
|
#
|
|
# http://github.com/demizer/archzfs
|
|
#
|
|
# The build script generates and updates the pkgver and _kernel* variables.
|
|
#
|
|
pkgname="zfs-git"
|
|
pkgver=0.6.3_r0_g07dabd2_3.15.5_2
|
|
pkgrel=2
|
|
license=('CDDL')
|
|
|
|
# Used incase the i686 and x86_64 linux packages get out of sync with the
|
|
# PKGREL. This occurred on January 31, 2014 where i686 was versioned at
|
|
# 3.12.9-1 and x86_64 was versioned at 3.12.9-2.
|
|
_kernel_version_x32="3.15.5-2"
|
|
_kernel_version_x32_full="3.15.5-2"
|
|
_kernel_version_x64="3.15.5-2"
|
|
_kernel_version_x64_full="3.15.5-2"
|
|
|
|
if [[ $CARCH == "i686" ]]; then
|
|
_kernel_version=${_kernel_version_x32}
|
|
_kernel_version_full=${_kernel_version_x32_full}
|
|
else
|
|
_kernel_version=${_kernel_version_x64}
|
|
_kernel_version_full=${_kernel_version_x64_full}
|
|
fi
|
|
|
|
pkgdesc="Kernel modules for the Zettabyte File System."
|
|
depends=("spl-git" "zfs-utils-git" "linux=${_kernel_version}")
|
|
makedepends=("git" "linux-headers=${_kernel_version}")
|
|
arch=("i686" "x86_64")
|
|
url="http://zfsonlinux.org/"
|
|
source=("git+https://github.com/zfsonlinux/zfs.git#commit=07dabd23")
|
|
groups=("archzfs-git")
|
|
md5sums=('SKIP')
|
|
replaces=("zfs")
|
|
provides=("zfs")
|
|
conflicts=("zfs" "zfs-lts")
|
|
install=zfs.install
|
|
|
|
build() {
|
|
cd "${srcdir}/zfs"
|
|
./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 \
|
|
--with-config=kernel \
|
|
--with-linux=/usr/lib/modules/${_kernel_version_full}-ARCH/build
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/zfs"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
cp -r "$pkgdir"/{lib,usr}
|
|
rm -r "$pkgdir"/lib
|
|
|
|
sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/${_kernel_version_full}-ARCH/Module.symvers
|
|
}
|
|
|