aboutsummaryrefslogtreecommitdiff
path: root/system/zarfy
diff options
context:
space:
mode:
Diffstat (limited to 'system/zarfy')
-rw-r--r--system/zarfy/README2
-rw-r--r--system/zarfy/patch-makefile-in34
-rw-r--r--system/zarfy/patch-src-makefile-in11
-rw-r--r--system/zarfy/zarfy.SlackBuild16
4 files changed, 54 insertions, 9 deletions
diff --git a/system/zarfy/README b/system/zarfy/README
index 757175e67d6e..d1a3fb12df6e 100644
--- a/system/zarfy/README
+++ b/system/zarfy/README
@@ -1,4 +1,4 @@
zarfy is a gui to libxrandr. It presents the user with a visual
representaion of active displays on an interactive map of the
-screen memory. It features free postioning, configuration saving,
+screen memory. It features free positioning, configuration saving,
scripting for R&R, and an alternate gui for switching monitors.
diff --git a/system/zarfy/patch-makefile-in b/system/zarfy/patch-makefile-in
new file mode 100644
index 000000000000..44c98da60f39
--- /dev/null
+++ b/system/zarfy/patch-makefile-in
@@ -0,0 +1,34 @@
+--- Makefile.in.orig 2008-09-13 06:05:07.000000000 -0700
++++ Makefile.in 2015-01-26 08:13:00.780325974 -0800
+@@ -612,24 +612,24 @@
+
+ install-data-local:
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(pkgdatadir); \
++ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \
+ for fname in data/*; do \
+ if test -f $$fname; then \
+- $(INSTALL_DATA) $$fname $(pkgdatadir); \
++ $(INSTALL_DATA) $$fname $(DESTDIR)$(pkgdatadir); \
+ fi \
+ done;
+- $(mkinstalldirs) $(mandir)/man1; \
+- $(INSTALL_DATA) man/zarfy.1.gz $(mandir)/man1
++ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1; \
++ $(INSTALL_DATA) man/zarfy.1.gz $(DESTDIR)$(mandir)/man1
+
+ uninstall-local:
+ @$(NORMAL_UNINSTALL)
+- for fname in $(pkgdatadir)/*; do \
++ for fname in $(DESTDIR)$(pkgdatadir)/*; do \
+ if test -f $$fname; then \
+ rm $$fname; \
+ fi \
+ done; \
+- rmdir $(pkgdatadir); \
+- rm $(mandir)/man1/zarfy.*
++ rmdir $(DESTDIR)$(pkgdatadir); \
++ rm $(DESTDIR)$(mandir)/man1/zarfy.*
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/system/zarfy/patch-src-makefile-in b/system/zarfy/patch-src-makefile-in
new file mode 100644
index 000000000000..8d7410013872
--- /dev/null
+++ b/system/zarfy/patch-src-makefile-in
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig 2008-09-13 06:05:07.000000000 -0700
++++ src/Makefile.in 2015-01-26 08:28:52.276310733 -0800
+@@ -200,7 +200,7 @@
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
++ test -z "$(DESTDIR)$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
diff --git a/system/zarfy/zarfy.SlackBuild b/system/zarfy/zarfy.SlackBuild
index 14cd2c0a7909..d1b8880555f7 100644
--- a/system/zarfy/zarfy.SlackBuild
+++ b/system/zarfy/zarfy.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=zarfy
VERSION=${VERSION:-0.1.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -65,12 +65,14 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ \( -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 {} \;
+
+patch -p0 < $CWD/patch-makefile-in
+patch -p0 < $CWD/patch-src-makefile-in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -91,9 +93,7 @@ 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/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install