public
Created

PKGBUILD fix for leechcraft-git

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
pkgname=leechcraft-git
pkgver=20120313
pkgrel=1
pkgdesc="Opensource network client providing a full-featured web browser, BitTorrent client and much more."
arch=('i686' 'x86_64')
url="http://leechcraft.org"
license=('GPL3')
depends=('qt>=4.6' 'libtorrent-rasterbar>=0.15.0' 'phonon' 'qross' 'qjson' 'qscintilla' 'qxmpp-leechcraft-git' 'qca' 'qca-gnupg' 'curl' 'qwt')
makedepends=('gcc' 'boost' 'make' 'cmake' 'git')
conflicts=(leechcraft)
provides=(leechcraft)
replaces=(leechcraft)
install=leechcraft.install
_gitname=leechcraft
_gitroot=git://github.com/0xd34df00d/leechcraft.git
build() {
cd ${srcdir}
msg "Connecting to GIT server...."
if [ -d ${_gitname} ] ; then
cd ${_gitname} && git pull origin
msg "The local files are updated."
cd ${srcdir}
else
git clone ${_gitroot} ${_gitname}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
cd ${srcdir}
rm -rf ${_gitname}-build
mkdir ${_gitname}-build
cd ${_gitname}-build
msg "Building ..."
msg "Apply ArchLinux hacks for build..."
_git_version=`(cd ${srcdir}/${_gitname} && git describe | awk '{print $1}')`
cmake ${srcdir}/${_gitname}/src \
-DLEECHCRAFT_VERSION="${_git_version}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_PYLC:BOOL=False \
-DENABLE_AZOTH=TRUE \
-DENABLE_SECMAN=TRUE \
-DENABLE_LACKMAN=TRUE \
-DENABLE_POPISHU=TRUE \
-DENABLE_GMAILNOTIFIER=TRUE \
-DENABLE_ADVANCEDNOTIFICATIONS=TRUE \
-DENABLE_QROSP=TRUE \
-DENABLE_SYNCER=TRUE \
-DENABLE_POTORCHU=TRUE \
-DENABLE_OTZERKALU=TRUE \
-DENABLE_GLANCE=TRUE \
-DENABLE_TABSLIST=TRUE \
-DENABLE_EISKALTDCPP=FALSE \
make DESTDIR=$pkgdir install
install -Dm 644 $srcdir/${_gitname}/src/resources/images/leechcraft.svg \
$pkgdir/usr/share/pixmaps/leechcraft.svg
install -Dm 644 $srcdir/${_gitname}/src/freedesktop/leechcraft.desktop \
$pkgdir/usr/share/applications/leechcraft.desktop || return 1
rm -rf ${_gitname}-build
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.