blob: c00b58924e86caf450b4e36007826db7fea621cc (
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
|
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
source /usr/src/ports/Build/build.sh
NAME=hatari
VERSION=1.6.2
BUILD=1
DEPENDS=('sdl >= 1.2.15-1')
# Description
cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: hatari (Atari emulator)
${NAME}:
${NAME}: Hatari is an emulator for the Atari ST, STE, TT and Falcon computers.
${NAME}: The Atari ST was a 16/32 bit computer system which was first released
${NAME}: by Atari in 1985. Using the Motorola 68000 CPU, it was a very popular
${NAME}: computer that had quite a lot of CPU power at that time. Hatari was
${NAME}: started as a port of the free Windows emulator WinSTon which uses
${NAME}: UAE's CPU core. It tries to emulate the hardware as closely as
${NAME}: possible.
${NAME}:
${NAME}: Homepage: http://hatari.tuxfamily.org
EOF
# Sources
SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCPACK[0]=http://download.tuxfamily.org/${SRCNAME[0]}/${SRCVERS[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCCOPY[0]="GPL2"
build0()
{
sed -i 's|share/hatari|share/application-data/hatari|g' CMakeLists.txt
cmake \
-DCMAKE_C_FLAGS:STRING="${FLAGS}" \
-DCMAKE_CXX_FLAGS:STRING="${FLAGS}" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL="on" \
-DCMAKE_INSTALL_PREFIX:PATH="${SYS_DIR[usr]}" \
-DDOCDIR:STRING="share/html/hatari" \
.
make ${JOBS}
make install DESTDIR="${PKG}"
doc doc/{authors,keymap-sample}.txt
changelog doc/release-notes.txt
install.dat hatari.desktop ${PKG}${SYS_DIR[share]}/applications
mv \
${PKG}${SYS_DIR[share]}/icons/hicolor/32x32/apps/hatari-icon.png \
${PKG}${SYS_DIR[share]}/icons/hicolor/32x32/apps/hatari.png
gunzip ${PKG}${SYS_DIR[man]}/man?/*.?.gz
rm -rf \
${PKG}${SYS_DIR[html]}/hatari/*.txt \
${PKG}${SYS_DIR[bin]}/hatariui \
${PKG}${SYS_DIR[man]}/man1/hatariui.1 \
${PKG}${SYS_DIR[share]}/applications/hatariui.desktop \
${PKG}${SYS_DIR[share]}/application-data/hatari/{hatariui,hconsole}
}
|