summarylogtreecommitdiffstats
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
downloadaur-af49b6d49f631858250297d8e7bffa085befc65d.tar.gz
New package
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD43
-rw-r--r--install6
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5eb79a40b00
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = tmux-applet-git
+ pkgdesc = Simple applet enhancement and configuration file for tmux
+ pkgver = 20130309
+ pkgrel = 1
+ url = https://bitbucket.org/vianney/tmux-applet
+ install = install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ depends = tmux
+ backup = etc/tmux-applet.conf
+
+pkgname = tmux-applet-git
+
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:
diff --git a/install b/install
new file mode 100644
index 00000000000..99c2b7b2273
--- /dev/null
+++ b/install
@@ -0,0 +1,6 @@
+post_install() {
+ echo "Add the following line to your .bashrc to autostart tmux at login:"
+ echo " . /usr/share/tmux-applet/autostart.sh"
+}
+
+# vim:set ts=2 sw=2 et: