aboutsummaryrefslogtreecommitdiff
path: root/network/hipchat/hipchat.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/hipchat/hipchat.SlackBuild')
-rw-r--r--network/hipchat/hipchat.SlackBuild37
1 files changed, 20 insertions, 17 deletions
diff --git a/network/hipchat/hipchat.SlackBuild b/network/hipchat/hipchat.SlackBuild
index aeece1a968d27..bb7aa5056e30f 100644
--- a/network/hipchat/hipchat.SlackBuild
+++ b/network/hipchat/hipchat.SlackBuild
@@ -28,10 +28,12 @@
# <http://www.gnu.org/licenses/>.
PRGNAM=hipchat
-VERSION=${VERSION:-2.2.1388}
+VERSION=${VERSION:-4.29.4.1662}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=HipChat4
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i686 ;;
@@ -45,26 +47,27 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" != "x86_64" ]; then
+ echo "$ARCH is not supported!"
+ exit 1
+fi
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-
-tar xvf $CWD/$PRGNAM-$VERSION-$ARCH.pkg.tar.xz -C $PKG
-chown -R root:root $PKG
-
-# Create missing symlink for cert
-mkdir -p $PKG/etc/ssl/certs
-ln -s DigiCert_High_Assurance_EV_Root_CA.pem $PKG/etc/ssl/certs/81b9768f.0
-
-# Fix permissions on libraries
-find $PKG -name "*\.so*" -type f -exec chmod 0755 {} \;
-
-# Remove some cruft
-rm -f $PKG/.PKGINFO
-
-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
+cd $PKG
+ar p $CWD/$SRCNAM-${VERSION}-Linux.deb data.tar.gz | tar xvz
+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 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Create symlinks in /usr/bin
+mkdir -p $PKG/usr/bin
+ln -s /opt/hipchat/bin/hipchat $PKG/usr/bin/hipchat
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild