diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4fd7a88 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +pkgname=gstopwatch-git +pkgbase=gstopwatch +pkgver=20130331 +pkgrel=1 +pkgdesc="A simple stopwatch, written in GTK3." +arch=(any) +url="https://github.com/Unia/gstopwatch" +license=(GPL) +depends=('gtk3') + +_gitroot="https://github.com/Unia/$pkgbase" +_gitname="$pkgbase" + +build() { + cd "$srcdir" + msg "Connecting to GIT server..." + + if [ -d ${_gitname} ] ; then + cd ${_gitname}/ + git pull + msg "The local files are updated." + else + git clone ${_gitroot} ${_gitname} + cd ${_gitname}/ + fi + msg "GIT checkout done or server timeout" + + make +} + +package() { + cd "$srcdir/$pkgbase/" + + make DESTDIR="$pkgdir" install +} |