summaryrefslogtreecommitdiff
path: root/pcr/quackle/PKGBUILD
blob: 02f5ac56865ada3e93c9aa6b92ece9303955496b (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
# Maintainer: Guillaume ALAUX <Guillaume at ALAUX dot net>
pkgname=quackle
pkgver=0.97
pkgrel=2
pkgdesc='Free crossword game (Scrabble-like) artificial intelligence and analysis tool'
arch=('i686' 'x86_64')
url='http://people.csail.mit.edu/jasonkb/quackle'
license=('GPL')
depends=('qt4')
makedepends=('qt4')
source=(http://people.csail.mit.edu/jasonkb/${pkgname}/downloads/${pkgname}-${pkgver}/${pkgname}-${pkgver}-source.tar.gz
        quacker.sh)
md5sums=('f744484e916f4cbbcffe6c13d772aee7'
         '0c3cf80395db58959c8ae825b917a19f')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  qmake-qt4
  make clean
  make

  cd "${srcdir}/${pkgname}-${pkgver}/quackleio"
  qmake-qt4
  make clean
  make

  cd "${srcdir}/${pkgname}-${pkgver}/quacker"
  qmake-qt4
  make clean
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -dm755 ${pkgdir}/opt/${pkgname}
  cp -r quacker/quacker data ${pkgdir}/opt/${pkgname}
  install -Dm755 ${srcdir}/quacker.sh ${pkgdir}/usr/bin/quacker
}