Created
March 13, 2012 13:39
-
-
Save manpages/2028828 to your computer and use it in GitHub Desktop.
PKGBUILD fix for leechcraft-git
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
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment