blob: ed55d6f7ae2b5a97ec75640c0b3feae5aa2c885e (
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
|
# Maintainer: Alexander Jacocks <alexander@redhat.com>
pkgname=mii_emu
pkgver=1.97
pkgrel=1
pkgdesc="Apple //e Emulator for Linux"
arch=('any')
url="https://github.com/buserror/mii_emu"
license=('MIT')
depends=(alsa-lib libglvnd glu libx11 pixman)
makedepends=(base-devel)
optdepends=('alsa-lib: needed for sound' 'mold')
provides=('mii_emu')
conflicts=('mii_emu')
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/buserror/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
"mii_emu.desktop")
sha256sums=('4bf8d3bf9b23f99e587a9b313f7f59a8716fed955afdf15d8527958a46614173'
'30ed9a8f75daf97aad8933d0409dd6dc0933e1b4ec4f077a8121eff14e53f951')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
echo CFLAGS are $CFLAGS
export CFLAGS=`echo $CFLAGS | sed -e 's/-flto=auto//' -e 's/-fno-omit-frame-pointer//'`
echo after update CFLAGS are $CFLAGS
make clean; make
}
package() {
# prep desktop file and .desktop
sed -e "s/^Version=.*/Version=${pkgver}/" mii_emu.desktop > "${srcdir}/${pkgname}-${pkgver}/mii_emu.desktop"
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=${srcdir}/${pkgname}-${pkgver}/dist install
install -Dm644 "mii_emu.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 "contrib/mii-icon-64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/mii_emu.png"
install -Dm 755 dist/bin/mii_emu_gl "${pkgdir}"/usr/bin/mii_emu_gl
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
install -Dm 644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}
install -Dm 644 docs/Compiling.md -t "${pkgdir}"/usr/share/doc/${pkgname}
install -Dm 644 docs/mui_emulator.drawio.png -t "${pkgdir}"/usr/share/doc/${pkgname}
install -Dm 644 docs/screen/screen_color.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/screen_config.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/screen_green.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/screen_mish.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/screen_total.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v17heatmap.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v18colorapple.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v18new_display.gif -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v18ssc_dialog.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v19artifacts.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v19mega2.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/v19ntsc.png -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 docs/screen/video_main.gif -t "${pkgdir}"/usr/share/doc/${pkgname}/screen
install -Dm 644 disks/dos33master.nib -t "${pkgdir}"/usr/share/${pkgname}/disks
install -Dm 644 disks/prodos242.dsk -t "${pkgdir}"/usr/share/${pkgname}/disks
cd "${pkgdir}"/usr/bin
ln -s mii_emu_gl mii_emu
cd -
}
|