diff options
author | Unia <jthidskes@live.nl> | 2013-04-08 22:15:33 +0200 |
---|---|---|
committer | Unia <jthidskes@live.nl> | 2013-04-08 22:15:33 +0200 |
commit | 9c19b84dccceaa4b8accc10a7d9aa9dd9120004e (patch) | |
tree | 72400d0fb8c40a2af7d97fc97d40eca430d252f0 | |
parent | 3991ee0c7ab71de87a49939b4e20d7a6f5e030b1 (diff) |
added desktop file and pkgbuild
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | data/gstopwatch.desktop | 9 |
2 files changed, 44 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 +} diff --git a/data/gstopwatch.desktop b/data/gstopwatch.desktop new file mode 100644 index 0000000..35a7763 --- /dev/null +++ b/data/gstopwatch.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Gstopwatch +GenericName=A simple stopwatch, written in GTK3. +Comment=Start, pause, stop the timer with the ability to save laps +Icon=clocks +Terminal=false +Exec=gstopwatch +Categories=GNOME;GTK;Utilies; |