mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-11 04:24:36 +08:00
74 lines
1.6 KiB
Bash
Executable File
74 lines
1.6 KiB
Bash
Executable File
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=rekonq-git
|
|
pkgver=20111010
|
|
pkgrel=1
|
|
pkgdesc="rekonq is a KDE web browser based on QtWebKit."
|
|
arch=('i686' 'x86_64')
|
|
url="http://rekonq.sourceforge.net/"
|
|
license=('GPL')
|
|
groups=()
|
|
depends=('kde-baseapps' 'qt')
|
|
makedepends=('gcc' 'cmake' 'automoc4' 'git' 'docbook-xsl' 'bc')
|
|
categories=('network')
|
|
provides=(rekonq)
|
|
conflicts=(rekonq)
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
source=(rekonq-git.install patch)
|
|
noextract=()
|
|
md5sums=('c354917df476f6ddfec82d0ccf7dfd85'
|
|
'86515d857298456cb34d60588ae2311c')
|
|
|
|
_gitroot="git://anongit.kde.org/rekonq.git"
|
|
_gitname="rekonq"
|
|
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [ -d ${_gitname} ]; then
|
|
cd ${_gitname} && git pull origin
|
|
msg "The local files are updated."
|
|
else
|
|
git clone ${_gitroot}
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
msg "Starting make..."
|
|
|
|
rm -rf ${srcdir}/build
|
|
git clone ${srcdir}/${_gitname} ${srcdir}/build
|
|
cd ${srcdir}/build
|
|
|
|
# patch and run localization files
|
|
patch -Np1 -i ${srcdir}/patch
|
|
|
|
export RK_SRCS="${srcdir}/build"
|
|
cd scripts
|
|
chmod +x download_i18n.sh
|
|
./download_i18n.sh
|
|
cd ..
|
|
# end path and run localization files
|
|
|
|
cmake . -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DWITH_WEBGL=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/build
|
|
make DESTDIR=${pkgdir} install
|
|
}
|