summaryrefslogtreecommitdiff
path: root/pcr/spl-utils-git/PKGBUILD
blob: d076a5813dd0a35bf870bfe52b26c31885a537d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer (Arch): Jesus Alvarez <jeezusjr at gmail dot com>
# Contributor (Arch): Kyle Fuller <inbox at kylefuller dot co dot uk>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
#
# 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-utils-git"
pkgver=0.6.4.2_r0_g04974ca_4.1.6_1
pkgrel=1
license=('GPL')
pkgdesc="Solaris Porting Layer kernel module support files."
makedepends=("git")
arch=("i686" "x86_64")
url="http://zfsonlinux.org/"
source=("git+https://github.com/zfsonlinux/spl.git#commit=04974ca1"
        "spl-utils.hostid")
groups=("archzfs-git")
md5sums=('SKIP'
         'a54f0041a9e15b050f25c463f1db7449')
replaces=("spl-utils")
provides=("spl-utils")
conflicts=("spl-utils" "spl-utils-lts")

build() {
    cd "${srcdir}/spl"
    ./autogen.sh

    _at_enable=""
    [ "${CARCH}" == "i686"  ] && _at_enable="--enable-atomic-spinlocks"

    ./configure --prefix=/usr \
                --libdir=/usr/lib \
                --sbindir=/usr/bin \
                --with-config=user \
                ${_at_enable}

    make
}

package() {
    cd "${srcdir}/spl"
    make DESTDIR="${pkgdir}" install

    install -D -m644 "${srcdir}"/spl-utils.hostid "${pkgdir}"/etc/hostid
}