Skip to content

Commit

Permalink
toolshed-hg: Add package
Browse files Browse the repository at this point in the history
  • Loading branch information
stahta01 committed Mar 18, 2024
1 parent 7aa9abf commit 0e703aa
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
54 changes: 54 additions & 0 deletions toolshed-hg/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Maintainer: Tim S <[email protected]>
# Original Author: Paul Hentschel <paul at hpminc dot com>

_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:
35 changes: 35 additions & 0 deletions toolshed-hg/copyright
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
License: artistic

0 comments on commit 0e703aa

Please sign in to comment.