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

66 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="spl-lts"
pkgver=0.6.4.1_3.14.40
pkgrel=1
# 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"
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="Solaris Porting Layer kernel modules."
depends=("spl-utils-lts" "linux-lts=${_kernel_version}")
makedepends=("linux-lts-headers=${_kernel_version}")
arch=("i686" "x86_64")
url="http://zfsonlinux.org/"
source=("http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-0.6.4.1.tar.gz")
groups=("archzfs-lts")
license=("GPL")
install=spl.install
provides=("spl")
conflicts=("spl" "spl-git")
build() {
cd "${srcdir}/spl-0.6.4.1"
./autogen.sh
_at_enable=""
[ "${CARCH}" == "i686" ] && _at_enable="--enable-atomic-spinlocks"
./configure --prefix=/usr \
--libdir=/usr/lib \
--sbindir=/usr/bin \
--with-linux=/usr/lib/modules/${_kernel_version_full}-lts/build \
--with-config=kernel \
${_at_enable}
make
}
package() {
cd "${srcdir}/spl-0.6.4.1"
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/lib" "${pkgdir}/usr/"
sed -i "s+${srcdir}++" ${pkgdir}/usr/src/spl-*/${_kernel_version_full}-lts/Module.symvers
}
sha256sums=('a177a6b988dc4358ca0df785c0fb120c4cfd48154822f4a8912f50b9a8d74ca7')