blob: 83f7f28064b3084e7be709fd63b2fdeb2d514138 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=tmpview-bin
pkgver=1.3.1
pkgrel=2
_upstream_pkgname="TMPview_v${pkgver}-STYLE"
pkgdesc='Viewer/converter between Turbo Macro Pro and plain text (TMPx) assembly formats'
arch=('x86_64')
url="https://style64.org/release/tmpview-v${pkgver}-style"
license=('custom:proprietary')
depends=('gcc-libs')
options=('!strip') # released binary is already stripped
source=("https://style64.org/file/${_upstream_pkgname}.zip")
sha512sums=(
'db122a952f3c94631cd186d1a791d0aae2746946a4ff36e2bc0936eb3bdf91eea267ed5f16146c498c307b8e8eb46ca0c640bef14b575d59874aeb035c9815fd'
)
build() {
echo >&2 'Adding license information'
# Derived from the output of `tmpview --help`
echo > "${srcdir}/LICENSE" '(c) Style 2006-2015'
echo >&2 'Converting documentation to UTF-8'
mkdir -p "${srcdir}/${_upstream_pkgname}/build"
iconv -f cp437 -t utf-8 \
-o "${srcdir}/${_upstream_pkgname}/build/STYLE.nfo" \
"${srcdir}/${_upstream_pkgname}/STYLE.nfo"
}
package() {
echo >&2 'Packaging executable'
install -D -m 755 -t "${pkgdir}/usr/bin" \
"${srcdir}/${_upstream_pkgname}/linux-${CARCH}/tmpview"
echo >&2 'Packaging documentation'
install -D -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
"${srcdir}/${_upstream_pkgname}/changelog.txt" \
"${srcdir}/${_upstream_pkgname}/build/STYLE.nfo" \
"${srcdir}/${_upstream_pkgname}/linux-${CARCH}/readme.txt" \
echo >&2 'Packaging the example'
install -D -m 644 -t "${pkgdir}/usr/share/${pkgname}/example" \
"${srcdir}/${_upstream_pkgname}/test-jmorph.src.prg"
echo >&2 'Packaging the license'
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
"${srcdir}/LICENSE"
}
|