summaryrefslogtreecommitdiff
path: root/system/unison/unison.SlackBuild
diff options
context:
space:
mode:
authorLuiz Carlos Ramos <lramos.prof@yahoo.com.br>2014-10-23 04:37:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-23 04:37:57 +0700
commit51d72ba0f58856690e01f62659e7fbb21e517303 (patch)
tree21e199b72625b80be36643709fe42e0db24d943e /system/unison/unison.SlackBuild
parent48174e5106ce6ddfae434104f118895fce97135c (diff)
downloadslackbuilds-51d72ba0f58856690e01f62659e7fbb21e517303.tar.gz
system/unison: Fix build with OCAML 4.0.
This requires the update of lablgtk which fixed the ld.conf. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/unison/unison.SlackBuild')
-rw-r--r--system/unison/unison.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/system/unison/unison.SlackBuild b/system/unison/unison.SlackBuild
index 847a230a6c..96e1e11a65 100644
--- a/system/unison/unison.SlackBuild
+++ b/system/unison/unison.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=unison
-VERSION=2.40.63
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-2.40.63}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -53,7 +53,12 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Apply patches
+for _p in $(ls $CWD/*.patch); do
+ patch -p1 -i $_p
+done
# no need to set CFLAGS
@@ -73,7 +78,7 @@ make UISTYLE=$FLAVOR DEBUGGING=false THREADS=true NATIVE=true
mkdir -p $PKG/usr/bin
install -m 0755 $PRGNAM $PKG/usr/bin
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/applications