1 # Maintainer: Manalishi <manalishi at freenet dot de>
3 _pkgname="${pkgname%-*}"
6 pkgdesc="A 100% compatible version of Commodore's version of Microsoft BASIC 6502."
8 url="http://cbmbasic.sourceforge.net/"
10 makedepends=('subversion')
11 provides=("${_pkgname}")
12 conflicts=("${_pkgname}")
13 source=( "Makefile.diff"
15 md5sums=('2e34310f93eeb1a95f9b084f7c21598f'
16 '9cf04f76f29acab7288c1148ca3cd1dc')
19 _svntrunk="https://cbmbasic.svn.sourceforge.net/svnroot/${_svnmod}/trunk"
24 if [ -d ${_svnmod} ]; then
25 msg "Updating local SVN repository."
26 (cd ${_svnmod} && svn up)
27 msg "SVN update done or server timeout."
29 msg "Checking out SVN repository."
30 svn co "${_svntrunk}" "${_svnmod}"
31 msg "SVN checkout done or server timeout."
34 msg "Starting make process."
36 rm -rf "${_svnmod}-build/"
37 cp -r "${_svnmod}" "${_svnmod}-build"
38 cd "${_svnmod}-build/"
39 patch -uN Makefile ../Makefile.diff || return 1
45 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_svnmod}/LICENSE" || return 1
47 cd "${srcdir}/${_svnmod}-build/"
48 install -D cbmbasic "${pkgdir}/usr/bin/cbmbasic" || return 1
49 install -D -m644 README.txt "${pkgdir}/usr/share/${_svnmod}/README.txt" || return 1
51 cd "${srcdir}/${_svnmod}-build/test"
52 install -D -m644 color.bas "${pkgdir}/usr/share/${_svnmod}/test/color.bas" || return 1
53 install -D -m644 fileeof.bas "${pkgdir}/usr/share/${_svnmod}/test/fileeof.bas" || return 1
54 install -D -m644 fileio.bas "${pkgdir}/usr/share/${_svnmod}/test/"fileio.bas || return 1
55 install -D -m644 get.bas "${pkgdir}/usr/share/${_svnmod}/test/get.bas" || return 1
56 install -D -m644 plot.bas "${pkgdir}/usr/share/${_svnmod}/test/plot.bas" || return 1
57 install -D -m644 sieve.bas "${pkgdir}/usr/share/${_svnmod}/test/sieve.bas" || return 1
58 install -D -m644 test_console.bas "${pkgdir}/usr/share/${_svnmod}/test/test_console" || return 1