diff --git a/toolshed-hg/PKGBUILD b/toolshed-hg/PKGBUILD new file mode 100644 index 00000000..894739b0 --- /dev/null +++ b/toolshed-hg/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Tim S +# Original Author: Paul Hentschel + +_realname=toolshed +_machine=m6809 +_target=${_machine}-unknown +_basepkgver=2.2 + +pkgname=${_realname}-hg +pkgver=2.2+r819.221d493c19f8 +pkgrel=1 +pkgdesc="Utilities for Tandy Color Computer and Dragon microcomputers cross-development" +arch=('x86_64') +url="http://toolshed.sourceforge.net" +license=('PerlArtistic') +groups=("${_target}-toolchain") +makedepends=('gcc' 'make' 'mercurial' 'patch') +source=("${_realname}::hg+http://hg.code.sf.net/p/toolshed/code") +sha256sums=('SKIP') + +pkgver() { + cd "${_realname}" + printf "${_basepkgver}+r%s.%s" "$(hg identify -n)" "$(hg identify -i)" +} + +prepare() { + cd "${_realname}" +} + +build() { + cd "${_realname}" + make -C build/unix clean + make -C build/unix +} + +check() { + cd "${_realname}" + ./tests/hybrid-dsk.sh + ./tests/multihdb-dsk.sh +} + +package() { + cd "${_realname}" + make DESTDIR="$pkgdir/" -C build/unix install + + # Install license file + sed -n '/Copyright/,/PARTICULAR PURPOSE./p' casm/src/util.h > LICENSE + install -Dm644 -t "$pkgdir${MSYSTEM_PREFIX}/share/licenses/${_realname}" LICENSE + + # Install image for HTML manual + install -m644 doc/cover.jpg "$pkgdir${MSYSTEM_PREFIX}/share/doc/${_realname}/" +} + +# vim:set ts=2 sw=2 et: diff --git a/toolshed-hg/copyright b/toolshed-hg/copyright new file mode 100644 index 00000000..82bab374 --- /dev/null +++ b/toolshed-hg/copyright @@ -0,0 +1,35 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: toolshed +Source: https://sourceforge.net/projects/toolshed/ + +Files: * +Copyright: 2004 Boisy G. Pitre +License: Public Domain + +Files: casm/* +Copyright: 2004 Chet Simpson, Digial Asphyxia +License: artistic + +Files: makewav/* +Copyright: 2007 Tim Lindner +License: Public Domain + +Files: superdos/* +Copyright: 1986 Grosvenor, Compusense. +License: Public Domain + +Files: mamou/* +Copyright: 2004 Boisy G. Pitre +License: Public Domain + +Files: hdbdos/* +Copyright: 2004 Boisy G. Pitre +License: Public Domain + +Files: cocoroms/*.asm +Copyright: 1982 Tandy +License: Public Domain + +Files: debian/* +Copyright: 2013 Tormod Volden +License: artistic