blob: 8caa2b89164d775d1c1d456d765c48b52fa448f0 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Co-Maintainer: Jose Riha <jose1711 gmail com>
# Maintainer: John Lane <archlinux at jelmail dot com>
pkgname=kryoflux
pkgdesc="USB Floppy Controller for Software Preservation"
pkgver=2.6
pkgrel=7
arch=('i686' 'x86_64')
url="http://www.kryoflux.com"
license=('custom')
provides=('capsimage')
conflicts=('capsimage')
depends=('libusb')
install=kryoflux.install
makedepends=('gendesk' 'imagemagick')
optdepends=('java-runtime: for the Kryoflux GUI')
source=("http://www.kryoflux.com/download/kryoflux_${pkgver}_linux.tar.bz2"
'https://kryoflux.com/kryoflux-ui.jar'
'80-kryoflux.rules'
'kryoflux.conf'
'kryoflux.sh'
'https://webstore.kryoflux.com/catalog/images/kf_logo_big.png')
md5sums=('12d57dcc9657a90c583dded553b8a2e1'
'44a067aa8d40dd0c8c53d6ff3ad8109c'
'43ec7eb49fbdab703cafe146145fe0de'
'ede10c48b2b1edc5c346e8814f07bcdb'
'6811dc57633d7046a540b65e763aa338'
'ede9a2b77643af8bf9d166c30827c170')
prepare() {
cd "${srcdir}"
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "Control program for KryoFlux" --exec "kryoflux" --categories "Utility;Archiving"
convert kf_logo_big.png -background None -gravity center -extent 400x400 kryoflux.png
}
package() {
pkgroot=${pkgdir}/usr
#pkgroot=${pkgdir}/usr/local
cd "$srcdir"
install -D 80-kryoflux.rules ${pkgdir}/etc/udev/rules.d/80-kryoflux.rules
install -D kryoflux.conf ${pkgdir}/etc/modprobe.d/kryoflux.conf
cd "$srcdir/kryoflux_${pkgver}_linux"
install -d ${pkgroot}/{bin,lib}
# rename dtc binary to kdtc to avoid clash with dtc package (suggested by @frankspace)
install dtc/${CARCH}/static/dtc ${pkgroot}/bin/kdtc
install -Dm755 dtc/${CARCH}/static/dtc ${pkgroot}/share/java/kryoflux/dtc
# install -Dm644 dtc/kryoflux-ui.jar ${pkgroot}/share/java/kryoflux/kryoflux-ui.jar
install -Dm644 ${srcdir}/kryoflux-ui.jar ${pkgroot}/share/java/kryoflux/kryoflux-ui.jar
cp -P dtc/${CARCH}/lib* ${pkgroot}/lib
# Firmwares: choose one or the other
install -D dtc/firmware_kf_usb_rosalie.bin ${pkgdir}/usr/lib/firmware/firmware_kf_usb_rosalie.bin
install -D dtc/firmware_fast/firmware_kf_usb_rosalie.bin ${pkgdir}/usr/lib/firmware/firmware_kf_usb_rosalie.bin
# Documents
install -d ${pkgdir}/usr/share/{licenses,doc}/kryoflux
install LICENCE.txt ${pkgdir}/usr/share/licenses/kryoflux/LICENCE
install docs/* ${pkgdir}/usr/share/doc/kryoflux
install dtc/*README* ${pkgdir}/usr/share/doc/kryoflux
cp -a schematics ${pkgdir}/usr/share/doc/kryoflux
# Shell wrapper
install -Dm755 ${srcdir}/kryoflux.sh ${pkgroot}/bin/kryoflux
# Desktop file
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgroot}/share/applications/${pkgname}.desktop"
install -Dm644 "${srcdir}/${pkgname}.png" "${pkgroot}/share/pixmaps/${pkgname}.png"
}
# vim: ft=sh syn=sh et
|