summaryrefslogtreecommitdiff
path: root/libre-testing/xfsprogs/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/xfsprogs/PKGBUILD')
-rw-r--r--libre-testing/xfsprogs/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/libre-testing/xfsprogs/PKGBUILD b/libre-testing/xfsprogs/PKGBUILD
new file mode 100644
index 000000000..4ebfc1674
--- /dev/null
+++ b/libre-testing/xfsprogs/PKGBUILD
@@ -0,0 +1,33 @@
+#
+pkgname=xfsprogs
+pkgver=4.18.0
+pkgrel=1
+pkgdesc="XFS filesystem utilities"
+arch=('x86_64' 'ppc64le')
+license=('LGPL')
+url="http://xfs.org"
+groups=('base')
+depends=('sh' 'libutil-linux' 'readline')
+makedepends=('git')
+options=('!makeflags')
+source=("git+https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git#tag=v${pkgver}")
+md5sums=('SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}-dev"
+ make configure
+ export OPTIMIZER="-mcpu=${CARCH/_/-} -O1"
+ export DEBUG=-DNDEBUG
+ ./configure --prefix=/usr --sbindir=/usr/bin --enable-readline
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-dev"
+ make DIST_ROOT="${pkgdir}" PKG_ROOT_SBIN_DIR="/usr/bin" install install-dev
+ chown -R root $pkgdir
+ chgrp -R root $pkgdir
+ # add hack as we cannot set rootlibdir
+ mv "${pkgdir}"/lib/libhandle.so* "${pkgdir}/usr/lib/"
+ rm -rf "${pkgdir}/lib"
+}