blob: 44707ee177f068d944d6311813b2a7530b4e3f6e (
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
|
# Maintainer: Volker Schwaberow <volker@schwaberow.de>
pkgname=skoolkit
pkgver=9.3
pkgrel=1
pkgdesc="A suite of tools for creating disassemblies of ZX Spectrum games."
arch=('x86_64')
url="https://github.com/skoolkid/skoolkit"
license=('GPL')
depends=('python')
source=("$pkgname-$pkgver.tar.xz::$url/releases/download/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('f18bb78e73b616da459118dcb9c76c813b498e0b0152c50c1ca402540c85daad')
options=('!lto')
package() {
cd "$pkgname-$pkgver"
install -Dm 755 bin2sna.py -t "$pkgdir/usr/bin"
install -Dm 755 bin2tap.py -t "$pkgdir/usr/bin"
install -Dm 755 skool2asm.py -t "$pkgdir/usr/bin"
install -Dm 755 skool2bin.py -t "$pkgdir/usr/bin"
install -Dm 755 skool2ctl.py -t "$pkgdir/usr/bin"
install -Dm 755 skool2html.py -t "$pkgdir/usr/bin"
install -Dm 755 sna2ctl.py -t "$pkgdir/usr/bin"
install -Dm 755 sna2img.py -t "$pkgdir/usr/bin"
install -Dm 755 sna2skool.py -t "$pkgdir/usr/bin"
install -Dm 755 snapinfo.py -t "$pkgdir/usr/bin"
install -Dm 755 snapmod.py -t "$pkgdir/usr/bin"
install -Dm 755 tap2sna.py -t "$pkgdir/usr/bin"
install -Dm 755 tapinfo.py -t "$pkgdir/usr/bin"
install -Dm 755 trace.py -t "$pkgdir/usr/bin"
install -Dm 644 docs/*.html -t "$pkgdir/usr/share/doc/$pkgname/docs"
install -Dm 644 docs/_sources/*.txt -t "$pkgdir/usr/share/doc/$pkgname/docs/_sources"
install -Dm 644 docs/_sources/man/*.txt -t "$pkgdir/usr/share/doc/$pkgname/docs/_sources/man"
install -Dm 644 docs/_static/* -t "$pkgdir/usr/share/doc/$pkgname/docs/_static"
install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname"
local pyver="$(python -c 'import platform; print(platform.python_version()[:4])')"
install -d -m 755 "$pkgdir/usr/lib/python$pyver/site-packages/skoolkit"
cp -r skoolkit/*.py "$pkgdir/usr/lib/python$pyver/site-packages/skoolkit/"
install -d -m 755 "$pkgdir/usr/lib/python$pyver/site-packages/skoolkit/resources"
cp -r skoolkit/resources/* "$pkgdir/usr/lib/python$pyver/site-packages/skoolkit/resources/"
}
|