Added ArchLinux package ( http://aur.archlinux.org/packages.php?ID=37942 )
authorHarvie <tomas@mudrunka.cz>
Wed, 9 Jun 2010 02:02:35 +0000 (04:02 +0200)
committerHarvie <tomas@mudrunka.cz>
Wed, 9 Jun 2010 02:02:35 +0000 (04:02 +0200)
README
archlinux/PKGBUILD [new file with mode: 0644]

diff --git a/README b/README
index 60ef349af3b82f395e8ad6925b40b1a3c6dd69a0..379526cf8e4d7f30f99ccb66fdc5c551e006ae4a 100644 (file)
--- a/README
+++ b/README
@@ -1,16 +1,14 @@
 libPurple core-answerscripts plugin
-       Framework for hooking scripts to received messages for various libpurple clients
+       - Framework for hooking scripts to respond received messages for various libpurple clients such as pidgin or finch
+       - This simple plugin just passes every single message received by any libPurple-based client (pidgin,finch) to sript(s) in user's home directory... So you can add various hooks to your pidgin or finch without need of writing and compiling own C plugin or messing with buggy perl plugin and restarting client after each change in plugin.
+       - There are already few sample (answer)scripts in purple directory, so you can check how easy it is to write some script for pidgin or finch...
 
-This simple plugin just passes every single message received by any libPurple-based client (pidgin,finch) to sript(s) in user's home directory... So you can add various hooks to your pidgin or finch without need of writing and compiling own C plugin or messing with buggy perl plugin and restarting client after each change in plugin.
-
-There are already few sample (answer)scripts in purple directory, so you can check how easy it is to write some script for pidgin or finch...
-
-
-The libpurple header files are needed to compile the plugin.
 
 Building & installation:
 
-To build and install :
+- The libpurple header files are needed to compile the plugin.
+
+- To build and install :
        You can compile the plugin using
        $ make
        and install it with
@@ -19,10 +17,14 @@ To build and install :
        $ make user
        Install main script and sample answerscripts to ~/.purple/answerscripts.d/
 
-To install it for everybody on your computer,
+To install it for everybody on your computer,
        $ make
        $ su
-       # make install PREFIX="/path/to/pidgin" (this command as root user)
-       generally /path/to/pidgin is /usr or /usr/local. If you don't know the path then you can find out using
-       $ whereis pidgin
-       and look for the part before "/lib/pidgin".
+       # make install PREFIX="/path/to/libpurple" (this command as root user)
+       generally /path/to/libpurple is /usr or /usr/local. If you don't know the path then you can find out using
+       $ whereis libpurple
+       and look for the part before "/lib/libpurple.so".
+
+
+Installing from packages:
+       - ArchLinux: http://aur.archlinux.org/packages.php?ID=37942
diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD
new file mode 100644 (file)
index 0000000..d450e03
--- /dev/null
@@ -0,0 +1,46 @@
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer:  Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=libpurple-core-answerscripts-git
+pkgver=20100609
+pkgrel=1
+pkgdesc="Framework for hooking scripts to respond received messages for various libpurple clients such as pidgin or finch"
+arch=('x86_64' 'i686')
+url="http://github.com/harvie/libpurple-core-answerscripts"
+license=('GPL')
+depends=('libpurple')
+makedepends=('git')
+source=()
+md5sums=()
+
+_gitroot='git://github.com/Harvie/libpurple-core-answerscripts.git'
+_gitname="$pkgname"
+
+build() {
+  cd ${srcdir}/
+
+  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 make..."
+
+  rm -rf "$srcdir/$_gitname-build"
+  cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+  cd "$srcdir/$_gitname-build"
+
+  #
+  # BUILD HERE
+  #
+
+       make || return 1
+       make install PREFIX="$pkgdir/usr" || return 1
+}
This page took 0.154984 seconds and 4 git commands to generate.