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.
62 lines
1.9 KiB
62 lines
1.9 KiB
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com>
|
|
# Contributor: Kyle Fuller <inbox at kylefuller dot co dot uk>
|
|
|
|
pkgname="spl"
|
|
#
|
|
# 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.9
|
|
pkgrel=2
|
|
|
|
# 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.
|
|
LINUX_VERSION_X32="3.12.9-1"
|
|
LINUX_VERSION_X64="3.12.9-2"
|
|
[[ $CARCH == "i686" ]] && LINUX_VERSION=$LINUX_VERSION_X32 || LINUX_VERSION=$LINUX_VERSION_X64
|
|
|
|
pkgdesc="Solaris Porting Layer kernel modules."
|
|
depends=("spl-utils" "linux=$LINUX_VERSION")
|
|
makedepends=("linux-headers=$LINUX_VERSION")
|
|
arch=("i686" "x86_64")
|
|
url="http://zfsonlinux.org/"
|
|
source=(http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-0.6.2.tar.gz
|
|
shrinker_api_fix.patch)
|
|
groups=("archzfs")
|
|
md5sums=('f00535bf89a7fde0e08f44a14a1f1e03'
|
|
'4d30dbda61995e77c5ca976abb80bad6')
|
|
license=("GPL")
|
|
install=spl.install
|
|
|
|
prepare() {
|
|
cd "$srcdir/spl-0.6.2"
|
|
patch -Np1 < ../shrinker_api_fix.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/spl-0.6.2"
|
|
./autogen.sh
|
|
if [[ $CARCH == "i686" ]]; then
|
|
./configure --prefix=/usr --libdir=/usr/lib --sbindir=/usr/bin \
|
|
--with-config=kernel --enable-atomic-spinlocks
|
|
else
|
|
./configure --prefix=/usr --libdir=/usr/lib --sbindir=/usr/bin \
|
|
--with-config=kernel
|
|
fi
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/spl-0.6.2"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# move module tree /lib -> /usr/lib
|
|
cp -r "$pkgdir"/{lib,usr}
|
|
rm -r "$pkgdir"/lib
|
|
}
|
|
|