#!/bin/bash pkgname=libpinyin pkgver=1.0 # svn url git_dir=${pkgname} git_url=git://github.com/libpinyin/libpinyin.git # let's rock! git_cmd=" clone" git $git_cmd $git_url $git_dir 2>git_err.log # create the source archive tar czf $pkgname-$pkgver.tar.gz $git_dir rm -rf $pkgname # change the SLKBUILD sed -i 's#^pkgver=.*#pkgver='$pkgver'#' SLKBUILD