mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 21:07:14 +08:00
47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe calà <jiveaxe@gmail.com>
|
|
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=telepathy-sunshine-git
|
|
pkgver=20110421
|
|
pkgrel=1
|
|
pkgdesc="Telepathy-sunshine is the Gadu-Gadu connection manager for Telepathy. (Git version)"
|
|
arch=('i686' 'x86_64')
|
|
url="http://git.collabora.co.uk/?p=telepathy-sunshine.git"
|
|
groups=('telepathy')
|
|
license=('GPL3')
|
|
depends=('twisted' 'python-telepathy' 'python2' 'pyopenssl')
|
|
provides=('telepathy-sunshine')
|
|
makedepends=('git')
|
|
|
|
_gitroot=git://anongit.freedesktop.org/telepathy/telepathy-sunshine
|
|
_gitname=telepathy-sunshine
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
msg "Connecting to git server...."
|
|
|
|
if [ -d ${srcdir}/${_gitname} ] ; then
|
|
cd ${_gitname} && git pull origin
|
|
msg "The local files are updated."
|
|
else
|
|
git clone ${_gitroot}
|
|
cd ${_gitname}
|
|
fi
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
msg "Patching for python2"
|
|
sed -i 's_#!/usr/bin/python$_#!/usr/bin/python2_' $srcdir/$_gitname/$_gitname
|
|
|
|
msg "Compiling..."
|
|
export PYTHON="/usr/bin/python2"
|
|
./autogen.sh --prefix=/usr --libexecdir=/usr/lib/telepathy
|
|
make || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
}
|