#!/bin/bash pkgname=npapi-vlc pkgver=2.2.2 _pkgname=libvlcpp # svn url git_dir=$pkgname git_url=https://code.videolan.org/videolan/npapi-vlc.git _git_dir=${_pkgname} _git_url=https://code.videolan.org/videolan/libvlcpp.git # let's rock! git_cmd=" clone" git $git_cmd $git_url $git_dir 2>svn_err.log git $git_cmd ${_git_url} ${_git_dir} 2>svn_err.log ( cd $pkgname git submodule init git config submodule.vlcpp.url "../${_pkgname}" git submodule update ./autogen.sh || return 1 ) # create the source archive echo "create the source archive $pkgname-$pkgver.tar.gz" tar czf $pkgname-$pkgver.tar.gz $git_dir rm -rf $git_dir # create the source archive #tar czf ${_pkgname}-$pkgver.tar.gz ${_git_dir} rm -rf ${_git_dir} # change the SLKBUILD sed -i 's#^pkgver=.*#pkgver='$pkgver'#' SLKBUILD