summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVianney le Clément de Saint-Marcq2013-03-09 15:35:54 +0100
committerVianney le Clément de Saint-Marcq2015-06-11 20:42:25 +0200
commitaf49b6d49f631858250297d8e7bffa085befc65d (patch)
tree9a5adc6e672435ba8c7c473473ceced15406e9b5 /PKGBUILD
downloadaur-af49b6d49f631858250297d8e7bffa085befc65d.tar.gz
New package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3c65f4e39c8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Vianney le Clément de Saint-Marcq <vleclement AT gmail·com>
+pkgname=tmux-applet-git
+pkgver=20130309
+pkgrel=1
+pkgdesc="Simple applet enhancement and configuration file for tmux"
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/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
+
+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"
+
+ make PREFIX=/usr ETCDIR=/etc
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="$pkgdir/" PREFIX=/usr ETCDIR=/etc install
+}
+
+# vim:set ts=2 sw=2 et: