summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVianney le Clément de Saint-Marcq2017-10-12 14:23:31 +0200
committerVianney le Clément de Saint-Marcq2017-10-12 14:23:31 +0200
commitdd6c301472f5cd387751e12d33adabb8b7856aee (patch)
treeead65a4e56c163b118ed91d1facfd78a16a922c7
parent8145c984f3f3c341b4130b40f8358cda2999d952 (diff)
downloadaur-hamster-shell-extension-git.tar.gz
Update for new upstream build system
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD22
2 files changed, 19 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e80e964df57..8988e9cc0fc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,19 @@
+# Generated by mksrcinfo v8
+# Thu Oct 12 12:23:31 UTC 2017
pkgbase = hamster-shell-extension-git
pkgdesc = Shell extension for project hamster - the GNOME time tracker
- pkgver = 20130209.gfc9e077
+ pkgver = 20171010.g495a37a
pkgrel = 1
url = https://github.com/projecthamster/shell-extension
arch = any
license = GPL
makedepends = git
+ makedepends = wget
depends = hamster-time-tracker
depends = gnome-shell
provides = hamster-shell-extension
conflicts = hamster-shell-extension
- source = git://github.com/projecthamster/shell-extension.git
+ source = git://github.com/projecthamster/hamster-shell-extension.git
md5sums = SKIP
pkgname = hamster-shell-extension-git
diff --git a/PKGBUILD b/PKGBUILD
index 1a23f1c5433..94a578bd681 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,39 @@
# Maintainer: Vianney le Clément <vleclement AT gmail · com>
_pkgname=hamster-shell-extension
pkgname=$_pkgname-git
-pkgver=20130209.gfc9e077
+pkgver=20171010.g495a37a
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')
+makedepends=('git' 'wget')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
-_gitname='shell-extension'
-source=("git://github.com/projecthamster/${_gitname}.git")
+source=("git://github.com/projecthamster/${_pkgname}.git")
md5sums=('SKIP')
pkgver() {
- cd "${srcdir}/${_gitname}"
+ cd "${srcdir}/${_pkgname}"
_date=$(git show -s --format='%ci' | cut -d' ' -f1 | sed 's/-//g')
_hash=$(git show -s --format='%h')
echo "${_date}.g${_hash}"
}
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make clean-build
+ make collect
+ make compile
+}
+
package() {
- cd "${srcdir}/${_gitname}"
- _uuid=$(sed -n 's/^.*"uuid"\s*:\s*"\([^"]*\)".*$/\1/p' metadata.json)
+ cd "${srcdir}/${_pkgname}"
+ _uuid=$(sed -n 's/^.*"uuid"\s*:\s*"\([^"]*\)".*$/\1/p' build/metadata.json)
_target="${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}"
mkdir -p "${_target}"
- cp -r * "${_target}"
+ cp -r build/* "${_target}"
}
# vim:set ts=2 sw=2 et: