Skip to content

Instantly share code, notes, and snippets.

@albert-chang0
Created April 7, 2011 22:23
Show Gist options
  • Save albert-chang0/908912 to your computer and use it in GitHub Desktop.
Save albert-chang0/908912 to your computer and use it in GitHub Desktop.
prpltwtr-libpurple-hg
# Maintainer: Albert Chang <[email protected]>
pkgname=prpltwtr-libpurple-hg
pkgver=20110704
pkgrel=1
pkgdesc="A libpurple (Pidgin, Finch, Empathy* etc) plugin which treats microblogging (Twitter, identi.ca, status.net, etc) as IM protocols. Skips pidgin check"
arch=(i686 x86_64)
url="http://code.google.com/p/prpltwtr/"
license=('GPL')
depends=('libpurple')
makedepends=('mercurial' 'pkgconfig')
install=$pkgname.install
md5sums=()
_merc_root="https://prpltwtr.googlecode.com/hg/"
_merc_repo="prpltwtr"
build() {
msg "Connecting to Mercurial server..."
if [ -d $_merc_repo ]
then
cd $_merc_repo
hg pull -u
msg "The local files are updated."
else
msg "hg clone $_merc_root $_merc_repo"
hg clone $_merc_root $_merc_repo
fi
if [ -d $_merc_repo ]
then
msg "Mercurial cloning success!"
else
msg "Mercurial cloning failed :("
fi
}
package() {
cd $srcdir/$_merc_repo
msg "Configuring make..."
./autogen.sh --prefix=/usr --without-pidgin
msg "Compiling..."
make DESTDIR=$pkgdir install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment