aboutsummaryrefslogtreecommitdiff
path: root/system/unison/unison.SlackBuild
diff options
context:
space:
mode:
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 847a230a6cee7..96e1e11a653a7 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