Created
April 7, 2011 22:23
-
-
Save albert-chang0/908912 to your computer and use it in GitHub Desktop.
prpltwtr-libpurple-hg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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