summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c53e3f2fd62eba664404411314649192f7dc179 (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
_pkgname=tagainijisho
pkgname=${_pkgname}-git
pkgver=1.1.90.r1773.dde2ad8
pkgrel=1
pkgdesc="Free Japanese dictionary and study assistant (qt5)"
arch=('i686' 'x86_64' 'armv7h' 'armv6h')
url="http://www.tagaini.net/"
license=('GPL3')
depends=('qt5-base>=5.4' 'qt5-tools' 'sqlite3>=3.7.9')
makedepends=('cmake>=2.8.12' 'desktop-file-utils')
conflicts=('tagainijisho')
source=(
  "git://github.com/Gnurou/${_pkgname}.git#branch=master"
)

md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    _revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
    echo "1.1.90.${_revision}"
}

build() {
  cd "$srcdir/$_pkgname"
  CFLAGS=`echo $CFLAGS | sed 's/-ffast-math//'` cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DQT_QMAKE_EXECUTABLE=qmake-qt5 . || return 1
  make $MAKEFLAGS || return 1
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR=$pkgdir install || return 1
}
# vim:set ts=2 sw=2 et: