#!/bin/bash pkgname=tic80 pkgver=1.4.1 # svn url git_dir=$pkgname git_url=https://github.com/nesbox/TIC-80 # let's rock! git_cmd=" clone" git $git_cmd --depth 1 --branch v$pkgver --recursive $git_url $git_dir 2>svn_err.log # 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