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-lts/PKGBUILD

71 lines
2.2 KiB

11 years ago
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com>
# Contributor: Kyle Fuller <inbox at kylefuller dot co dot uk>
# See http://github.com/demizer/archzfs for build scripts.
#
# 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-lts"
pkgver=0.6.4.1_3.14.40
pkgrel=1
11 years ago
# 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.14.40-2"
_kernel_version_x32_full="3.14.40-2"
_kernel_version_x64="3.14.40-2"
_kernel_version_x64_full="3.14.40-2"
11 years ago
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}
11 years ago
fi
pkgdesc="Kernel modules for the Zettabyte File System."
depends=("spl-lts" "zfs-utils-lts" "linux-lts=${_kernel_version}")
makedepends=("linux-lts-headers=${_kernel_version}")
11 years ago
arch=("i686" "x86_64")
url="http://zfsonlinux.org/"
source=("http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-0.6.4.1.tar.gz")
groups=("archzfs-lts")
11 years ago
license=("CDDL")
install=zfs.install
provides=("zfs")
conflicts=("zfs" "zfs-git")
11 years ago
build() {
cd "${srcdir}/zfs-0.6.4.1"
./autogen.sh
11 years ago
./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.4.1 \
11 years ago
--with-config=kernel \
--with-linux=/usr/lib/modules/${_kernel_version_full}-lts/build
make
11 years ago
}
package() {
cd "${srcdir}/zfs-0.6.4.1"
make DESTDIR="${pkgdir}" install
cp -r "$pkgdir"/{lib,usr}
rm -r "$pkgdir"/lib
11 years ago
sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/${_kernel_version_full}-lts/Module.symvers
11 years ago
}
sha256sums=('88a4ca2f08f00ef430174232eabe4acef1fdb4ade8ea1adab9518f1b6cce51c3')