Commits

jjacky committed f17225e

add weeplugins

Comments (0)

Files changed (1)

weeplugins/PKGBUILD

+# Maintainer: jjacky
+pkgname=weeplugins-git
+pkgver=20120829
+pkgrel=1
+pkgdesc="WeeChat plugins: NickServ handling, trigger commands on messages, command to send text/command to specific buffer"
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/jjacky/weeplugins"
+license=('GPL3+')
+depends=('weechat')
+makedepends=('git')
+
+_gitroot=https://jjacky@bitbucket.org/jjacky/weeplugins.git
+_gitname=weeplugins
+
+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"
+
+  #
+  # BUILD HERE
+  #
+  make
+}
+
+package() {
+  cd "$srcdir/$_gitname-build"
+  make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et: