summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b44b93ae1f503bf9ec6763ea19f508351e5e4ad1 (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
#Maintainer: xgdgsc<xgdgsc@gmail.com>
pkgname=youdao-qt-git
pkgver=20130313
pkgrel=1
pkgdesc="openyoudao dictionary client qt version"
arch=('i686' 'x86_64')
url="http://openyoudao.org/"
license=('GPL')
depends=('qt4')
#source=('https://gitcafe.com/Jactry/LinDict/zipball/master' 'lindict.desktop')
#md5sums=('eba0f685008243da4e1dfc98be7c8b25' 'e4fd210491586dc040881aea7db0610d')

_gitroot="git://github.com/lvzongting/youdao-qt.git"
_gitname="youdao-qt"

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 $_gitname
  fi

  msg "GIT checkout done"
  msg "Starting make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"
}

package(){
  cd "$srcdir/$_gitname-build"
  qmake-qt4 
  make
  install -Dm755 youdao-qt  "$pkgdir/usr/bin/youdao-qt"
}