aboutsummaryrefslogtreecommitdiff
path: root/community/parted/build
diff options
context:
space:
mode:
Diffstat (limited to 'community/parted/build')
-rwxr-xr-xcommunity/parted/build15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/parted/build b/community/parted/build
new file mode 100755
index 00000000..754547ca
--- /dev/null
+++ b/community/parted/build
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+
+export LDFLAGS="$LDFLAGS -static"
+
+./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --disable-nls \
+ --disable-rpath \
+ --disable-device-mapper \
+ "--with$(cpt l -C readline '' out)-readline"
+
+# I hate it when build systems don't adhere to flags.
+make CC="${CC:-cc} --static"
+make DESTDIR="$1" install