summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54defd3ff2d7972f0ef9570a8de8dea5c932d725 (plain)
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
# Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (at) gmail.com>
# Contributors: @alexwizard and @gcala

pkgname=rekonq-git
pkgver=2.3.2.39.g489dbe4.2013.11.10
pkgrel=1
pkgdesc="A WebKit based web browser for KDE, git version"
arch=('i686' 'x86_64')
url="http://rekonq.kde.org"
license=('GPL')
depends=('kdebase-keditbookmarks' 'qoauth' 'qtwebkit')
optdepends=('kdebase-konqueror: search engines support'
            'qca-ossl: to use the sync handler')
makedepends=('cmake' 'automoc4' 'git' 'docbook-xsl' 'bc')
provides=(${_realname})
conflicts=(${_realname})
install=${pkgname}.install
source=('rekonq::git://anongit.kde.org/rekonq'
  'patch')
md5sums=('SKIP'
         '5b81227b06f793322e9b854965803886')

pkgver() {
  cd rekonq
  echo $(git describe --tags).$(git log -1 --format="%cd" --date=short) | sed 's:-:.:g'
}
         
build() {
 
  cd rekonq
  # patch and run localization files
  patch -Np1 -i ${srcdir}/patch
  
  export RK_SRCS="${srcdir}/rekonq"
  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 \
          -DQT_QMAKE_EXECUTABLE=qmake4
  make
}

package() {
  cd ${srcdir}/rekonq
  make DESTDIR=${pkgdir} install
}