#!/bin/bash
pkgname=wm-logout
pkgver=0.1

# svn url
svn_dir=${pkgname}
svn_url=https://salix.svn.sourceforge.net/svnroot/salix/${svn_dir}/tags/${pkgver}
 
# let's rock!
svn_cmd=" co"

svn $svn_cmd $svn_url $svn_dir 2>svn_err.log
 
# create the source archive
tar czf $pkgname-$pkgver.tar.gz $svn_dir
 
# change the SLKBUILD
sed -i 's#^pkgver=.*#pkgver='$pkgver'#' SLKBUILD
 
