summaryrefslogtreecommitdiff
path: root/repo/util/genfstab
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/util/genfstab
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/util/genfstab')
-rw-r--r--repo/util/genfstab/genfstab.xibuild24
-rw-r--r--repo/util/genfstab/remove-extra-flags.patch13
2 files changed, 37 insertions, 0 deletions
diff --git a/repo/util/genfstab/genfstab.xibuild b/repo/util/genfstab/genfstab.xibuild
new file mode 100644
index 0000000..267906c
--- /dev/null
+++ b/repo/util/genfstab/genfstab.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+MAKEDEPS="make asciidoc"
+DEPS="bash sbase gawk"
+
+PKG_VER=24
+SOURCE=https://github.com/archlinux/arch-install-scripts.git
+BRANCH=v$PKG_VER
+
+ADDITIONAL="
+ remove-extra-flags.patch
+"
+
+DESC="A tool for generating /etc/fstab files from archlinux"
+
+
+prepare () {
+ apply_patches
+ sed -i "s/realpath -mL/realpath/g" genfstab.in
+}
+
+package () {
+ make PREFIX=/usr BINPROGS=genfstab MANS=doc/genfstab.8 DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/genfstab/remove-extra-flags.patch b/repo/util/genfstab/remove-extra-flags.patch
new file mode 100644
index 0000000..7adfc49
--- /dev/null
+++ b/repo/util/genfstab/remove-extra-flags.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 50f319a..018fa8b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -44,7 +44,7 @@ install: all
+ install -Dm644 $$comp $(DESTDIR)$(PREFIX)/share/bash-completion/completions/$${comp%%.*}; \
+ done;
+ for manfile in $(MANS); do \
+- install -Dm644 $$manfile -t $(DESTDIR)$(PREFIX)/share/man/man$${manfile##*.}; \
++ install -Dm644 $$manfile $(DESTDIR)$(PREFIX)/share/man/man$${manfile##*.}; \
+ done;
+
+ .PHONY: all clean install uninstall