Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrights committed Feb 10, 2021
1 parent a34c960 commit efb4c04
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.rpm
50 changes: 50 additions & 0 deletions qq.Slackbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/sh

# Slackware build script for qq.

# Copyright 2021 MDrights <[email protected]>
# All rights reserved.
#

PRGNAM=qq
VERSION=${VERSION:-2.0.0_b2_1084}
DISTVERSION="2.0.0-b2-1084"
BUILD=${BUILD:-1}
TAG=${TAG:-_MD}

if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH="x86" ;;
arm*) ARCH=arm ;;
x86_64) ARCH="x86_64" ;;
*) ARCH=$( uname -m ) ;;
esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

DOCFILES=""

set -e

rm -rf $PKG
rm -rf $TMP/$PRGNAM-$VERSION
mkdir -p $TMP $PKG $OUTPUT $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
#tar xvf $CWD/v$VERSION.tar.gz
#unzip $CWD/$PRGNAM-$ARCH.zip -d $TMP/$PRGNAM-$ARCH
rpm2cpio $CWD/linuxqq_${DISTVERSION}_$ARCH.rpm | cpio -idmv

# Copy the unpacked things to Temp dir.
mkdir -p $PKG/usr/local/bin $PKG/usr/local/lib $PKG/usr/local/share $PKG/usr/share/applications
cp -a $TMP/$PRGNAM-$VERSION/usr/local/bin/qq $PKG/usr/local/bin/
cp -a $TMP/$PRGNAM-$VERSION/usr/local/lib/tencent-qq/ $PKG/usr/local/lib/
cp -a $TMP/$PRGNAM-$VERSION/usr/local/share/tencent-qq/ $PKG/usr/local/share/
cp -a $TMP/$PRGNAM-$VERSION/usr/share/applications/qq.desktop $PKG/usr/share/applications/


cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
10 changes: 10 additions & 0 deletions qq.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PRGNAM="qq"
VERSION="2.0.0"
HOMEPAGE="https://im.qq.com/"
DOWNLOAD="http://down.qq.com/qqweb/LinuxQQ/linuxqq_2.0.0-b2-1084_x86_64.rpm"
MD5SUM=""
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="MDrights"
EMAIL="[email protected]"
48 changes: 0 additions & 48 deletions v2ray.Slackbuild

This file was deleted.

10 changes: 0 additions & 10 deletions v2ray.info

This file was deleted.

0 comments on commit efb4c04

Please sign in to comment.