summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD39
2 files changed, 19 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5eb79a40b00..8d652f74f23 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = tmux-applet-git
pkgdesc = Simple applet enhancement and configuration file for tmux
- pkgver = 20130309
+ pkgver = 20130309.g514d519
pkgrel = 1
- url = https://bitbucket.org/vianney/tmux-applet
+ url = https://github.com/vianney/tmux-applet
install = install
arch = i686
arch = x86_64
@@ -10,6 +10,8 @@ pkgbase = tmux-applet-git
makedepends = git
depends = tmux
backup = etc/tmux-applet.conf
+ source = git://github.com/vianney/tmux-applet.git
+ md5sums = SKIP
pkgname = tmux-applet-git
diff --git a/PKGBUILD b/PKGBUILD
index 3c65f4e39c8..83a0d2a1013 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,33 @@
# Maintainer: Vianney le Clément de Saint-Marcq <vleclement AT gmail·com>
-pkgname=tmux-applet-git
-pkgver=20130309
+_pkgname=tmux-applet
+pkgname=$_pkgname-git
+pkgver=20130309.g514d519
pkgrel=1
pkgdesc="Simple applet enhancement and configuration file for tmux"
arch=('i686' 'x86_64')
-url="https://bitbucket.org/vianney/tmux-applet"
+url="https://github.com/vianney/tmux-applet"
license=('GPL3')
depends=('tmux')
makedepends=('git')
backup=('etc/tmux-applet.conf')
install=install
-
-_gitroot=https://bitbucket.org/vianney/tmux-applet.git
-_gitname=tmux-applet
+source=("git://github.com/vianney/$_pkgname.git")
+md5sums=('SKIP')
+
+pkgver() {
+ 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"
- msg "Connecting to GIT server...."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
-
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
-
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
-
+ cd "$srcdir/$_pkgname"
make PREFIX=/usr ETCDIR=/etc
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir/" PREFIX=/usr ETCDIR=/etc install
}