mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 12:47:18 +08:00
73 lines
1.6 KiB
Bash
Executable File
73 lines
1.6 KiB
Bash
Executable File
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=rekonq-git
|
|
pkgver=20121102
|
|
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' 'qoauth' 'qca-ossl')
|
|
makedepends=('gcc' 'cmake' 'automoc4' 'git' 'docbook-xsl' 'bc')
|
|
provides=(rekonq)
|
|
conflicts=(rekonq)
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
source=('background.png'
|
|
'background.diff')
|
|
md5sums=('cd493df91e34030a8195eaf8b6d68140'
|
|
'5d7bab51b8f4b78c0f7cd94c885f22c3')
|
|
noextract=()
|
|
#md5sums=('c354917df476f6ddfec82d0ccf7dfd85')
|
|
|
|
_gitroot="git://anongit.kde.org/scratch/adjam/rekonq2.git"
|
|
_gitname="rekonq2"
|
|
|
|
|
|
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
|
|
|
|
export RK_SRCS="${srcdir}/build"
|
|
cd scripts
|
|
chmod +x download_i18n.sh
|
|
./download_i18n.sh
|
|
cd ..
|
|
# end path and run localization files
|
|
|
|
patch -p1 -i "${srcdir}/background.diff"
|
|
|
|
cmake . -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/build
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
rm ${pkgdir}/usr/share/apps/rekonq/pics/background.png
|
|
install -m 644 -p ${srcdir}/background.png ${pkgdir}/usr/share/apps/rekonq/pics/background.png
|
|
}
|