-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
vlink is copyright 1995-2022 by Frank Wille. | ||
This archive may be redistributed without modifications and used for non-commercial pur- | ||
poses. | ||
|
||
An exception for commercial usage is granted, provided that the target OS is AmigaOS/68k. | ||
Resulting binaries may be distributed commercially without further licensing. | ||
In all other cases you need my written consent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Maintainer: Tim S <[email protected]> | ||
|
||
_realname=vlink | ||
|
||
pkgbase=mingw-w64-${_realname} | ||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") | ||
pkgver=0_17a | ||
pkgrel=1 | ||
pkgdesc="Linker for the vasm assembler (mingw-w64)" | ||
arch=('any') | ||
url="http://sun.hasenbraten.de/vlink/" | ||
license=('custom') | ||
groups=() | ||
options=('!strip') | ||
makedepends=('patch' 'make' "${MINGW_PACKAGE_PREFIX}-cc") | ||
source=( | ||
"http://phoenix.owl.de/tags/vlink${pkgver}.tar.gz" | ||
'LICENSE' | ||
) | ||
sha256sums=('f6754913d47bc97cf4771cc0aa7c51de368a04894be35b8dc5e4beac527f5b82' | ||
'be4bf5a88dcdf5c19d221e921875dafebc642adafff4806b16a43c2a79c4f305') | ||
|
||
prepare() { | ||
cd "${_realname}" | ||
|
||
#patch -p1 -i ${srcdir}/001-fix-for-6502-LBEQ-out-of-range-error.patch | ||
} | ||
|
||
build() { | ||
cd "${_realname}" | ||
|
||
make clean | ||
rm -f objects/*.o | ||
rm -f *.exe | ||
make | ||
} | ||
|
||
package_vlink() { | ||
cd "${_realname}" | ||
|
||
mkdir -p "$pkgdir${MINGW_PREFIX}/bin/" | ||
cp vlink.exe "$pkgdir${MINGW_PREFIX}/bin/" | ||
|
||
mkdir -p "$pkgdir${MINGW_PREFIX}/share/licenses/${_realname}" | ||
install -Dm644 ${srcdir}/LICENSE \ | ||
"$pkgdir${MINGW_PREFIX}/share/licenses/${_realname}/" | ||
} | ||
|
||
# template start; name=mingw-w64-splitpkg-wrappers; version=1.0; | ||
# vim: set ft=bash : | ||
|
||
# generate wrappers | ||
for _name in "${pkgname[@]}"; do | ||
_short="package_${_name#${MINGW_PACKAGE_PREFIX}-}" | ||
_func="$(declare -f "${_short}")" | ||
eval "${_func/#${_short}/package_${_name}}" | ||
done | ||
# template end; |