summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2423823bcd623963753d15da1d62f974255f3c7f (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
# Contributor: Sergio Tridente <tioduke (at) gmail (dot) com>

_pkgname=qrae
pkgname=qrae-git
pkgver=135.26694a8
pkgrel=1
pkgdesc="Un cliente del diccionario castellano de la RAE."
arch=('i686' 'x86_64')
url="https://github.com/javierllorente/qrae"
license=('GPL')
depends=('qt5-webkit')
makedepends=('git' 'make')
conflicts=('qrae')
provides=('qrae')
source=('git+https://github.com/javierllorente/qrae.git#branch=master')
md5sums=('SKIP')


pkgver() {
  cd "$srcdir/${_pkgname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir/${_pkgname}"
  qmake-qt5 qdc.pro DESTDIR="$srcdir/${_pkgname}"
  make
}

package() {
  install -m755 -d ${pkgdir}/usr/{bin,share/{applications,pixmaps,doc/qdc}}

  install -m755 "$srcdir/${_pkgname}"/qdc "$pkgdir"/usr/bin/
  install -m644 "$srcdir/${_pkgname}"/icons/qdc.png "$pkgdir"/usr/share/pixmaps/
  install -m644 "$srcdir/${_pkgname}"/qdc.desktop "$pkgdir"/usr/share/applications/
  install -m644 "$srcdir/${_pkgname}"/{ChangeLog,COPYING,gpl-2.0.txt,gpl-3.0.txt} "$pkgdir"/usr/share/doc/qdc/
}