Skip to content

Commit

Permalink
vlink: Add package
Browse files Browse the repository at this point in the history
  • Loading branch information
stahta01 committed Jun 10, 2023
1 parent 2c5680e commit 000184e
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mingw-w64-vlink/LICENSE
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
58 changes: 58 additions & 0 deletions mingw-w64-vlink/PKGBUILD
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;

0 comments on commit 000184e

Please sign in to comment.