from github
Signed-off-by: Gwenhael Le Moine <cycojesus@ticub.gwenhael.net>
This commit is contained in:
parent
7f5da27ea0
commit
aca93ae7c3
1 changed files with 6 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=$(basename $CWD)
|
PRGNAM=$(basename $CWD)
|
||||||
VERSION=${VERSION:-$(date +%F | tr - .)}
|
VERSION=v0.1.7-beta
|
||||||
ARCH="noarch" # hardcode ARCH
|
ARCH="noarch" # hardcode ARCH
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-cyco}
|
TAG=${TAG:-cyco}
|
||||||
|
@ -19,20 +19,18 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
FILENAME=160485-music.zip
|
FILENAME=$PRGNAM-$VERSION.tar.gz
|
||||||
APPNAM=${PRGNAM#owncloud-apps-}
|
APPNAM=${PRGNAM#owncloud-apps-}
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $OUTPUT $PKG/$DOCROOT/owncloud/apps/
|
mkdir -p $TMP $OUTPUT $PKG/$DOCROOT/owncloud/apps/
|
||||||
cd $PKG/$DOCROOT/owncloud/apps/
|
cd $PKG/$DOCROOT/owncloud/apps/
|
||||||
|
|
||||||
[ ! -e $CWD/$FILENAME ] && wget -c http://apps.owncloud.com/CONTENT/content-files/$FILENAME -O $CWD/$FILENAME
|
[ ! -e $CWD/$FILENAME ] && wget -c https://github.com/owncloud/music/releases/download/$VERSION/music.tar.gz -O $CWD/$FILENAME
|
||||||
unzip $CWD/$FILENAME
|
tar xvf $CWD/$FILENAME
|
||||||
|
|
||||||
rm $CWD/$FILENAME
|
|
||||||
|
|
||||||
cd $APPNAM
|
cd $APPNAM
|
||||||
VERSION=$(cat appinfo/info.xml | grep -i version\> | sed 's|</\?version>||g' | tr -d \ | sed 's|\t||g' | tr - _ )
|
#VERSION=$(cat appinfo/info.xml | grep -i version\> | sed 's|</\?version>||g' | tr -d \ | sed 's|\t||g' | tr - _ )
|
||||||
|
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
|
@ -64,4 +62,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
||||||
|
|
Loading…
Reference in a new issue