summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a867aa8f48b3089ea2a47b86c7048fb0922d3b5e (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Maintainer: Léo Flaventin Hauchecorne <hl037.prog@gmail.com>
pkgname=clcbrowser-git
pkgver=1.2
pkgrel=1
pkgdesc="Fully Command line and remote controllable web browser"
arch=('i686' 'x86_64')
url="https://gitorious.org/clcbrowser/clcbrowser"
license=('GPL3')
groups=()
depends=('qt5-base' 'qt5-tools' 'qt5-webengine')
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(clcbrowser::git+https://github.com/hl037/CLCBrowser.git)
noextract=()
md5sums=('SKIP')
#_gitroot=https://github.com/hl037/CLCBrowser.git
#_gitname=clcbrowser


build() {
   if test "$CARCH" == i686 ;
      then
      SPEC="linux-g++-32"
   else
      if test "$CARCH" == x86_64
      then
         SPEC="linux-g++-64"
      else
         echo "unknown architecture"
         exit 1
      fi
   fi
   
   

   BUILD="$srcdir/build"
   rm -rf "$BUILD"
   mkdir "$BUILD"
   cd "$BUILD"
   lrelease-qt5 "$srcdir/clcbrowser/clcbrowser.pro"
   qmake-qt5 "$srcdir/clcbrowser/clcbrowser.pro" -r -spec $SPEC
   make -w
}

package() {
   BUILD="$srcdir/build"
   cd "$BUILD"
   install -d "$pkgdir/usr/bin" || return 1
   install -Dm755 clcbrowser "$pkgdir/usr/bin" || return 1
   cd "$srcdir/clcbrowser"
   install -d "$pkgdir/usr/share/icons" || return 1
   install -Dm755 clcbrowser.png "$pkgdir/usr/share/icons/clcbrowser.png" || return 1
   cd linux
   install -d "$pkgdir/usr/share/applications" || return 1
   install -Dm755 clcbrowser.desktop "$pkgdir/usr/share/applications" || return 1
}

# vim:set ts=2 sw=2 et: