aboutsummaryrefslogtreecommitdiff
path: root/gptfdisk/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'gptfdisk/abuild')
-rw-r--r--gptfdisk/abuild13
1 files changed, 13 insertions, 0 deletions
diff --git a/gptfdisk/abuild b/gptfdisk/abuild
new file mode 100644
index 00000000..3d74c086
--- /dev/null
+++ b/gptfdisk/abuild
@@ -0,0 +1,13 @@
+name=gptfdisk
+version=1.0.10
+release=1
+source="https://downloads.sourceforge.net/$name/$name-$version.tar.gz
+ gptfdisk-1.0.9-convenience-1.patch
+ fix-musl.patch"
+
+prebuild() {
+ sed -i 's|ncursesw/||' gptcurses.cc
+ sed -i 's|sbin|usr/sbin|' Makefile
+ sed -i '/UUID_H/s/^.*$/#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H)/' guid.cc
+ sed -i "/device =/s/= \(.*\);/= strdup(\1);/" gptcl.cc
+}