summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c48d628d7883dcaf71cba5ca431226cc906bf1e (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
# Maintainer: MikoĊ‚aj Milej <mikolajmm+archlinuxaur@gmail.com>

pkgname=ydpd-git
pkgver=0.5.1
pkgrel=1
pkgdesc="A front-end to YDP Collins Dictionary written in Qt4"
arch=('i686' 'x86_64')
url="https://github.com/travnick/ydpd"
license=('GPL')
depends=('qt4' 'libydpdict')
makedepends=('git')
options=('strip')
source=(git://github.com/travnick/ydpd.git)
md5sums=('SKIP')
_gitname=ydpd
_binname=ydpd

pkgver() {
  cd $_gitname
  # Use the tag of the last commit
  git describe --always | sed 's|v||g'
}

build() {
  mkdir "$srcdir/build" -p
  rm "$srcdir/build/*" -fr
  cd "$srcdir/build"
  
  qmake-qt4 -config release ../$_gitname

  make
}

package() {
  cd "$srcdir/build"

  install -D -m755 $_binname $pkgdir/usr/bin/$_binname || return 1
}