summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aab9ade643c34dbac2ac90578a630352984361d0 (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
# Maintainer: Frederic Bezies < fredbezies at gmail dot com >
# Contributor: Martin C. Doege <mdoege at compuserve dot com>
# Contributor: Raphael Scholer <rscholer@gmx.de>
# Contributor: Eric Waller <ewwaller@gmail.com>

pkgname=basic256
pkgver=2.0.0.11
pkgrel=2
pkgdesc="Educational BASIC programming environment"
arch=('i686' 'x86_64')
url="http://www.basic256.org/"
license=('GPL2')
depends=('qt5-multimedia' 'qt5-webkit' 'qt5-serialport' 'sdl_mixer' 'espeak')
makedepends=('bison' 'flex')
source=(http://downloads.sourceforge.net/kidbasic/${pkgname}_${pkgver}.orig.tar.gz
        "basic256.desktop")
sha256sums=('58a3d01afb800d2ca89bedf970afc376beb273420ef824a1d0962c654f157584'
            '601fe0147cc4b394e2c01afa20e371f7dffc9e7787ce9360ae0332545f6e62ec')

build () {
	cd "$srcdir/${pkgname}-${pkgver}" 
	qmake BASIC256.pro 
	make 
}

package () {
        cd "$srcdir/${pkgname}-${pkgver}"
	install -m 755 -D basic256 "${pkgdir}/usr/bin/basic256"
	install -m 755 -D Examples/basic256_icon.png "${pkgdir}/usr/share/icons/basic256.png"
	install -m 755 -D "$srcdir/basic256.desktop" "${pkgdir}/usr/share/applications/basic256.desktop"
	mkdir -p "${pkgdir}/usr/share/basic256/examples"
	cp -pr Examples/* "${pkgdir}/usr/share/basic256/examples"
    #mkdir -p "${pkgdir}/usr/share/basic256/help"
    #cp -pr wikihelp/help/* "${pkgdir}/usr/share/basic256/help"
    cp -pr Translations/* "${pkgdir}/usr/share/basic256/"
}