#!/bin/bash pkgname=splix # set pkgver to current date pkgver=$(date +%Y%m%d) if [ -d $pkgname ]; then ( cd $pkgname git pull --depth 1 ) else git clone --depth 1 https://gitlab.com/ScumCoder/splix.git fi # create the source archive tar czf $pkgname-$pkgver.src.tar.gz splix # change the SLKBUILD sed -i 's#^pkgver=.*#pkgver='$pkgver'#' SLKBUILD