diff options
author | Stefan Husmann | 2015-06-09 00:18:20 +0200 |
---|---|---|
committer | Stefan Husmann | 2015-06-09 00:18:20 +0200 |
commit | 43933dfbc510ef4f2010766a884f791c76feb497 (patch) | |
tree | 980360c96d4bf435825f82ae9ec070211883aa57 | |
download | aur-43933dfbc510ef4f2010766a884f791c76feb497.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | emacs-jabber-git.install | 24 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6a8917386f04 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = emacs-jabber-git + pkgdesc = A Jabber client written in emacs lisp + pkgver = 0.8.92.104.gd9bbe9b + pkgrel = 1 + url = http://emacs-jabber.sourceforge.net/ + install = emacs-jabber-git.install + arch = any + license = GPL + makedepends = git + depends = emacs + provides = emacs-jabber + conflicts = emacs-jabber + source = git://emacs-jabber.git.sourceforge.net/gitroot/emacs-jabber/emacs-jabber + md5sums = SKIP + +pkgname = emacs-jabber-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e8ac5a5a09ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: Anthony Garcia <lagg@[moltenrock]bit.com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=emacs-jabber-git +pkgver=0.8.92.104.gd9bbe9b +pkgrel=1 +pkgdesc="A Jabber client written in emacs lisp" +arch=('any') +url="http://emacs-jabber.sourceforge.net/" +license=('GPL') +depends=('emacs') +makedepends=('git') +provides=('emacs-jabber') +conflicts=('emacs-jabber') +install=$pkgname.install +source=('git://emacs-jabber.git.sourceforge.net/gitroot/emacs-jabber/emacs-jabber') +md5sums=('SKIP') +_gitname=emacs-jabber + +pkgver() { + cd $_gitname + git describe --tags | sed 's|-|.|g' +} + +build() { + cd $srcdir/$_gitname + autoreconf -i + ./configure --prefix=/usr --with-gconf-schema-file-dir=/etc/gconf/schemas \ + --libexecdir=/usr/lib/emacs-jabber + make +} + +package() { + cd $srcdir/$_gitname + make DESTDIR="$pkgdir/" install +} diff --git a/emacs-jabber-git.install b/emacs-jabber-git.install new file mode 100644 index 000000000000..68670a6a0c73 --- /dev/null +++ b/emacs-jabber-git.install @@ -0,0 +1,24 @@ +infodir=/usr/share/info +filelist=(jabber.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done + echo "Add the following line to your .emacs:" + echo "(require 'jabber-autoloads)" +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |