aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gkbuilds/bcache-tools-1.0.8_p20141204.gkbuild')
-rw-r--r--gkbuilds/bcache-tools-1.0.8_p20141204.gkbuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/gkbuilds/bcache-tools-1.0.8_p20141204.gkbuild b/gkbuilds/bcache-tools-1.0.8_p20141204.gkbuild
new file mode 100644
index 0000000..556e7f2
--- /dev/null
+++ b/gkbuilds/bcache-tools-1.0.8_p20141204.gkbuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+src_configure() {
+ append-ldflags -static
+}
+
+src_compile() {
+ PKG_CONFIG="$(tc-getPKG_CONFIG) --static" \
+ gkmake V=1
+}
+
+src_install() {
+ gkmake V=1 UDEVLIBDIR="$(get_udevdir)" DESTDIR="${D}" install
+
+ rm -rf \
+ "${D}"/lib \
+ "${D}"/usr/lib/initcpio \
+ "${D}"/usr/sbin \
+ "${D}"/usr/share
+
+ "${STRIP}" --strip-all "${D}"/usr/lib/udev/bcache-register \
+ || die "Failed to strip '${D}/usr/lib/udev/bcache-register'!"
+
+ "${STRIP}" --strip-all "${D}"/usr/lib/udev/probe-bcache \
+ || die "Failed to strip '${D}/usr/lib/udev/probe-bcache'!"
+}