updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / tuxmath / PKGBUILD
blob083301f1fb659187409a3bc36adca5e8049c1197
1 # Maintainer: Tasos Latsas < tlatsas2000 at gmail dot com >
2 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
3 # Contributor: arjan <arjan@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 # Contributor: Dany Martineau <dany.luc.martineau at gmail.com}
7 pkgname=tuxmath
8 pkgver=2.0.1
9 pkgrel=1
10 pkgdesc="An arcade game that helps kids practice their math facts"
11 arch=('i686' 'x86_64')
12 url="http://tux4kids.alioth.debian.org/tuxmath/"
13 license=('GPL' 'custom')
14 depends=('t4k_common')
15 makedepends=('make')
16 options=('!docs')
17 source=(https://alioth.debian.org/frs/download.php/3561/${pkgname}_w_fonts-${pkgver}.tar.gz)
18 md5sums=('dd9237f9ce38f931ecaae552cdaaaefe')
20 build() {
21   cd "${srcdir}"/${pkgname}_w_fonts-${pkgver}
23   ./configure --prefix=/usr
24   make
27 package() {
28   cd "${srcdir}"/${pkgname}_w_fonts-${pkgver}
30   make DESTDIR=${pkgdir} install
32   # install .desktop file and icons
33   mkdir -p ${pkgdir}/usr/share/{applications,pixmaps}
34   install -D -m644 tuxmath.desktop ${pkgdir}/usr/share/applications/tuxmath.desktop
35   install -D -m644 data/images/icons/icon.png ${pkgdir}/usr/share/pixmaps/tuxmath.png
37   # install licenses
38   install -D -m644 doc/OFL \
39     ${pkgdir}/usr/share/licenses/${pkgname}/OFL
40   install -D -m644 doc/README_DATA_LICENSES \
41     ${pkgdir}/usr/share/licenses/${pkgname}/DATA_LICENSES