summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/spl-utils-git/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/spl-utils-git/PKGBUILD b/pcr/spl-utils-git/PKGBUILD
new file mode 100644
index 000000000..d076a5813
--- /dev/null
+++ b/pcr/spl-utils-git/PKGBUILD
@@ -0,0 +1,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
+}