summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVianney le Clément de Saint-Marcq2015-10-09 09:07:44 +0200
committerVianney le Clément de Saint-Marcq2015-10-09 09:07:44 +0200
commit8145c984f3f3c341b4130b40f8358cda2999d952 (patch)
treed47df9a5d1dd7ee93aa4a6f42f1fceb52e43ff2a
downloadaur-8145c984f3f3c341b4130b40f8358cda2999d952.tar.gz
New package loosely based on outdated AUR3 package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD33
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e80e964df57
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = hamster-shell-extension-git
+ pkgdesc = Shell extension for project hamster - the GNOME time tracker
+ pkgver = 20130209.gfc9e077
+ pkgrel = 1
+ url = https://github.com/projecthamster/shell-extension
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = hamster-time-tracker
+ depends = gnome-shell
+ provides = hamster-shell-extension
+ conflicts = hamster-shell-extension
+ source = git://github.com/projecthamster/shell-extension.git
+ md5sums = SKIP
+
+pkgname = hamster-shell-extension-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1a23f1c5433
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Vianney le Clément <vleclement AT gmail · com>
+_pkgname=hamster-shell-extension
+pkgname=$_pkgname-git
+pkgver=20130209.gfc9e077
+pkgrel=1
+pkgdesc="Shell extension for project hamster - the GNOME time tracker"
+arch=(any)
+url="https://github.com/projecthamster/shell-extension"
+license=('GPL')
+depends=('hamster-time-tracker' 'gnome-shell')
+makedepends=('git')
+conflicts=("${_pkgname}")
+provides=("${_pkgname}")
+_gitname='shell-extension'
+source=("git://github.com/projecthamster/${_gitname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ _date=$(git show -s --format='%ci' | cut -d' ' -f1 | sed 's/-//g')
+ _hash=$(git show -s --format='%h')
+ echo "${_date}.g${_hash}"
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ _uuid=$(sed -n 's/^.*"uuid"\s*:\s*"\([^"]*\)".*$/\1/p' metadata.json)
+ _target="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
+ mkdir -p "${_target}"
+ cp -r * "${_target}"
+}
+
+# vim:set ts=2 sw=2 et: