development/cc65: Updated for version 2.17_20180906.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-09-07 15:46:56 -04:00 committed by Willy Sudiarto Raharjo
parent a4b56a1f76
commit 387fc867c3
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
5 changed files with 68 additions and 4 deletions

View File

@ -1,3 +1,5 @@
cc65 (6502 cross compiler suite)
cc65 is a complete cross development package for 65(C)02 systems,
including a powerful macro assembler, a C compiler, linker, librarian
and several other tools.
@ -5,3 +7,7 @@ and several other tools.
Supported targets include the Atari 400/800/XL/XE computers, the Atari Lynx
console, the Commodore PET/VIC/64/16/Plus4, the Nintendo NES, the Apple II,
and others.
The cc65 project rarely does releases. This build is updated once or
twice a year, to the latest git. If you need a specific version of cc65,
see README_SBo.txt.

View File

@ -0,0 +1,40 @@
cc65 releases are few and far between, so unlike most SlackBuilds, this
one packages a git snapshot. The build is only updated once or twice a
year, but you might find you need a later snapshot that fixes a bug or
adds a feature that you need.
To build a specific tag or commit of the cc65 source, use the git2tarxz.sh
script included in the SlackBuild directory. For instance, to build a
package of the 2.17 release:
# sh git2tarxz.sh V2.17
You could use a commit hash instead:
# sh git2tarxz.sh 8e75906
The last lines of output from git2tarxz.sh show the filename of
the created tarball and the VERSION you should set in the script's
environment. For the above example:
Created tarball: cc65-2.17_20180307.tar.xz
VERSION=2.17_20180307
So you'd this this command to build the package:
# VERSION=2.17_20180307 sh ./cc65.SlackBuild
Notes:
- Obviously I haven't tested every single commit. There are thousands
of them. If the SlackBuild fails, either use a different commit,
or contact me on IRC (user Urchlay on FreeNode ##slackbuilds or the
email address in the .info file) and I'll try to help.
- git2tarxz.sh will probably fail on Slackware-current. Use 14.2 to
prepare the source, even if you're going to build on -current. See
the comments in the script about linuxdoc-tools for details.
- The output of "cc65 --version" will always include the git commit that
was used to build it. This might be useful to know, if you're messing
around with different revisions.

View File

@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20180907 bkw:
# - Update for 2.17_20180906, git commit b6ccd4d.
# - Rename git2targz.sh => git2tarxz.sh.
# - Add option to git2tarxz.sh to use a specific tag/commit.
# - Add README_SBo.txt documenting the use of git2tarxz.sh.
# 20180103 bkw:
# - Update for 2.16_20180102, git commit 040134e7.
# - "prefix" renamed to "PREFIX" in src/Makefile. For now, set both in
@ -28,7 +34,7 @@
# reason. Source is created from a git checkout, see git2targz.sh.
PRGNAM=cc65
VERSION=${VERSION:-2.16_20180102}
VERSION=${VERSION:-2.17_20180906}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

View File

@ -1,8 +1,8 @@
PRGNAM="cc65"
VERSION="2.16_20180102"
VERSION="2.17_20180906"
HOMEPAGE="http://cc65.github.io/cc65/"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/cc65-2.16_20180102.tar.xz"
MD5SUM="afa1bbaf50aa47d132f719782198cdb4"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/cc65-2.17_20180906.tar.xz"
MD5SUM="d7dc9291c44251b018b271dd1c653bb5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View File

@ -8,6 +8,9 @@
# Note that this script doesn't need to be run as root. It does
# need to be able to write to the current directory it's run from.
# Takes one optional argument, which is the commit or tag to create
# a tarball of. With no arg, HEAD is used.
PRGNAM=cc65
CLONE_URL=https://github.com/$PRGNAM/$PRGNAM.git
@ -19,6 +22,11 @@ git clone $CLONE_URL $GITDIR
CWD="$( pwd )"
cd $GITDIR
if [ "$1" != "" ]; then
git reset --hard "$1" || exit 1
fi
GIT_SHA=$( git rev-parse --short HEAD )
sed -i "1iGIT_SHA=$GIT_SHA" src/Makefile
@ -52,3 +60,7 @@ cd "$CWD"
rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz
mv $GITDIR $PRGNAM-$VERSION
tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION
echo
echo "Created tarball: $PRGNAM-$VERSION.tar.xz"
echo "VERSION=$VERSION"